Skip to content

gpui: Take advantage of unified memory on macOS#49236

Merged
Anthony-Eid merged 22 commits intozed-industries:mainfrom
marcocondrache:fix/silicon-mem-metal
Feb 21, 2026
Merged

gpui: Take advantage of unified memory on macOS#49236
Anthony-Eid merged 22 commits intozed-industries:mainfrom
marcocondrache:fix/silicon-mem-metal

Conversation

@marcocondrache
Copy link
Contributor

Third attempt to land this improvement: (#45577, #44273)

The previous PR didn’t work on Intel MacBooks because I made a wrong assumption about the unified memory check. has_unified_memory only tells us that the CPU and GPU share memory. It does not mean we’re running on an Apple GPU family.

Memoryless textures are only supported on Apple GPUs. Some Intel Macs report unified memory, but they don’t support memoryless textures, which is why the previous change failed there.

So instead of relying on unified memory, we now explicitly check that we’re running on an Apple GPU family before enabling memoryless textures.

Before you mark this PR as ready for review, make sure that you have:

  • Added a solid test coverage and/or screenshots from doing manual testing
  • Done a self-review taking into account security and performance aspects
  • Aligned any UI changes with the UI checklist

Release Notes:

  • Reduced memory usage on macOS

Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 15, 2026
@github-actions github-actions bot added the community champion Issues filed by our amazing community champions! 🫶 label Feb 15, 2026
@marcocondrache marcocondrache marked this pull request as ready for review February 15, 2026 18:54
@notpeter
Copy link
Contributor

notpeter commented Feb 15, 2026

This worked for me on my Intel Macbook (16inch 2019).

edit: outdated info

Works as long as I commented out the breakage introduced in #49189

image

@Anthony-Eid
Copy link
Contributor

This worked for me on my Intel Macbook (16inch 2019) as long as I commented out the breakage introduced in #49189

image

Is this still broken for you and are you able to use a preview version of Zed?

@Anthony-Eid
Copy link
Contributor

Hopefully this one is the final try! I'll merge this in after releases (in an hour) so the team has a week to see if it introduces any bugs

@marcocondrache
Copy link
Contributor Author

@Anthony-Eid thank you so much!

@Anthony-Eid Anthony-Eid enabled auto-merge (squash) February 19, 2026 19:58
auto-merge was automatically disabled February 19, 2026 20:05

Head branch was pushed to by a user without write access

@marcocondrache
Copy link
Contributor Author

@Anthony-Eid sorry, I forgot to update Cargo.lock

@Anthony-Eid Anthony-Eid merged commit c8656ac into zed-industries:main Feb 21, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement community champion Issues filed by our amazing community champions! 🫶

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants