mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-20 23:10:30 +01:00
freedreno: Remove samples-per-tex tracking
Looks like this was unused, and only served to segfault when unbinding textures. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10530>
This commit is contained in:
parent
9fa3312773
commit
dbdc979320
2 changed files with 0 additions and 10 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue