aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc5/vc5_resource.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-10-25 13:00:44 -0700
committerEric Anholt <[email protected]>2017-10-30 13:31:28 -0700
commita797f0eb6371efb78bee5f5aea73c5cdcfbcd030 (patch)
tree6e6b7332c5f2111ef6d8e06745cd6b2592a8627d /src/gallium/drivers/vc5/vc5_resource.c
parentfe6fc579cbdc040a9bd62170c3713546dd112ae5 (diff)
broadcom/vc5: Set up MSAA texture type according to the internal format.
It gets most of EXT_framebuffer_multisample-formats passing, but doesn't really work for texture views.
Diffstat (limited to 'src/gallium/drivers/vc5/vc5_resource.c')
-rw-r--r--src/gallium/drivers/vc5/vc5_resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc5/vc5_resource.c b/src/gallium/drivers/vc5/vc5_resource.c
index 29623d9ba2c..9b951d9341e 100644
--- a/src/gallium/drivers/vc5/vc5_resource.c
+++ b/src/gallium/drivers/vc5/vc5_resource.c
@@ -371,7 +371,7 @@ vc5_setup_slices(struct vc5_resource *rsc, const char *caller)
/* MSAA textures/renderbuffers are always laid out as single-level
* UIF.
*/
- bool uif_top = prsc->nr_samples > 1;
+ bool uif_top = msaa;
for (int i = prsc->last_level; i >= 0; i--) {
struct vc5_resource_slice *slice = &rsc->slices[i];