broadcom/vc5: Remove leftover vc4 MSAA lowering setup in the FS key.
authorEric Anholt <eric@anholt.net>
Tue, 24 Apr 2018 22:23:27 +0000 (15:23 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 25 Apr 2018 16:21:54 +0000 (09:21 -0700)
src/broadcom/compiler/v3d_compiler.h
src/gallium/drivers/vc5/vc5_program.c

index 207e29733aa2c05a68383548e55c9a3fe9967e88..e89ea7be2173223f9bbc63d7779c49084554d2e8 100644 (file)
@@ -302,18 +302,11 @@ struct v3d_key {
                 uint8_t swizzle[4];
                 uint8_t return_size;
                 uint8_t return_channels;
-                union {
-                        struct {
-                                unsigned compare_mode:1;
-                                unsigned compare_func:3;
-                                bool clamp_s:1;
-                                bool clamp_t:1;
-                                bool clamp_r:1;
-                        };
-                        struct {
-                                uint16_t msaa_width, msaa_height;
-                        };
-                };
+                unsigned compare_mode:1;
+                unsigned compare_func:3;
+                bool clamp_s:1;
+                bool clamp_t:1;
+                bool clamp_r:1;
         } tex[V3D_MAX_TEXTURE_SAMPLERS];
         uint8_t ucp_enables;
 };
index 7bad80a1684bece08340c61e4864b45f606435bc..6beb3359f294bb5913c250fc6f47c9aeae0f1cb8 100644 (file)
@@ -363,10 +363,7 @@ vc5_setup_shared_key(struct vc5_context *vc5, struct v3d_key *key,
                         key->tex[i].swizzle[3] = PIPE_SWIZZLE_W;
                 }
 
-                if (sampler->texture->nr_samples > 1) {
-                        key->tex[i].msaa_width = sampler->texture->width0;
-                        key->tex[i].msaa_height = sampler->texture->height0;
-                } else if (sampler){
+                if (sampler) {
                         key->tex[i].compare_mode = sampler_state->compare_mode;
                         key->tex[i].compare_func = sampler_state->compare_func;
                         key->tex[i].clamp_s =