projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d77fcde
)
freedreno: fix samples=0 vs samples=1 confusion
author
Rob Clark
<robdclark@gmail.com>
Tue, 17 Jul 2018 13:44:23 +0000
(09:44 -0400)
committer
Rob Clark
<robdclark@gmail.com>
Tue, 17 Jul 2018 15:00:00 +0000
(11:00 -0400)
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>
src/gallium/drivers/freedreno/freedreno_batch_cache.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/freedreno/freedreno_batch_cache.c
b/src/gallium/drivers/freedreno/freedreno_batch_cache.c
index 804a73664f7851c05ab7b2a8bd056e48f68741fb..1bf656cf2087af2fb25005d7203e20f29e2318b6 100644
(file)
--- a/
src/gallium/drivers/freedreno/freedreno_batch_cache.c
+++ b/
src/gallium/drivers/freedreno/freedreno_batch_cache.c
@@
-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)