mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
freedreno: fix samples=0 vs samples=1 confusion
pipe_framebuffer_state can have samples=0 in various cases, which is actually the same thing as samples=1. So use the _get_num_samples() helper to populate the key, to avoid this looking like two distinct fb states to the cache. Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
d77fcdeb59
commit
15f6c0509a
1 changed files with 1 additions and 1 deletions
|
|
@ -414,7 +414,7 @@ fd_batch_from_fb(struct fd_batch_cache *cache, struct fd_context *ctx,
|
|||
key->width = pfb->width;
|
||||
key->height = pfb->height;
|
||||
key->layers = pfb->layers;
|
||||
key->samples = pfb->samples;
|
||||
key->samples = util_framebuffer_get_num_samples(pfb);
|
||||
key->ctx = ctx;
|
||||
|
||||
if (pfb->zsbuf)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue