v3d: Drop shadow comparison state from shader variant key.
authorEric Anholt <eric@anholt.net>
Thu, 20 Dec 2018 00:53:25 +0000 (16:53 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 20 Dec 2018 19:29:30 +0000 (11:29 -0800)
The shadow state is now in the sampler.

src/broadcom/compiler/v3d_compiler.h
src/gallium/drivers/v3d/v3d_program.c

index 797c687186e096f9cc9f17ff40e060f46b07d6e1..ec5fd87083c2f71defd58f5bf2ca6089ee4ae304 100644 (file)
@@ -313,8 +313,6 @@ struct v3d_key {
                 uint8_t swizzle[4];
                 uint8_t return_size;
                 uint8_t return_channels;
-                unsigned compare_mode:1;
-                unsigned compare_func:3;
                 bool clamp_s:1;
                 bool clamp_t:1;
                 bool clamp_r:1;
index 6c9d5c461ab84221090c9fca640b98d6a17e802f..5047ff75c55bebaeaff1f2c55888a0c5da2a00bd 100644 (file)
@@ -386,8 +386,6 @@ v3d_setup_shared_key(struct v3d_context *v3d, struct v3d_key *key,
                 }
 
                 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 =
                                 sampler_state->wrap_s == PIPE_TEX_WRAP_CLAMP;
                         key->tex[i].clamp_t =