Module: Mesa Branch: master Commit: 15f6c0509a8b6928a94023e095e08419cf1fe589 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=15f6c0509a8b6928a94023e095e08419cf1fe589
Author: Rob Clark <[email protected]> Date: Tue Jul 17 09:44:23 2018 -0400 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 <[email protected]> --- src/gallium/drivers/freedreno/freedreno_batch_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/freedreno/freedreno_batch_cache.c b/src/gallium/drivers/freedreno/freedreno_batch_cache.c index 804a73664f..1bf656cf20 100644 --- 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) _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
