diff --git a/src/gallium/drivers/freedreno/freedreno_context.h b/src/gallium/drivers/freedreno/freedreno_context.h index 26507635320..e1ce39afcc3 100644 --- a/src/gallium/drivers/freedreno/freedreno_context.h +++ b/src/gallium/drivers/freedreno/freedreno_context.h @@ -54,8 +54,6 @@ struct fd_texture_stateobj { struct pipe_sampler_state *samplers[PIPE_MAX_SAMPLERS]; unsigned num_samplers; unsigned valid_samplers; - /* number of samples per sampler, 2 bits per sampler: */ - uint32_t samples; }; struct fd_program_stateobj { diff --git a/src/gallium/drivers/freedreno/freedreno_texture.c b/src/gallium/drivers/freedreno/freedreno_texture.c index 1703a5afe5c..2ed42cb3f00 100644 --- a/src/gallium/drivers/freedreno/freedreno_texture.c +++ b/src/gallium/drivers/freedreno/freedreno_texture.c @@ -72,7 +72,6 @@ set_sampler_views(struct fd_texture_stateobj *tex, unsigned start, unsigned nr, struct pipe_sampler_view **views) { unsigned i; - unsigned samplers = 0; for (i = 0; i < nr; i++) { struct pipe_sampler_view *view = views ? views[i] : NULL; @@ -92,13 +91,6 @@ set_sampler_views(struct fd_texture_stateobj *tex, unsigned start, unsigned nr, } tex->num_textures = util_last_bit(tex->valid_textures); - - for (i = 0; i < tex->num_textures; i++) { - uint nr_samples = fd_resource_nr_samples(tex->textures[i]->texture); - samplers |= (nr_samples >> 1) << (i * 2); - } - - tex->samples = samplers; } void