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;
};
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 =