mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 05:58:05 +02:00
llvmpipe: Fix variable name.
Fix warning reported by Coverity Scan.
Unused value (UNUSED_VALUE)
assigned_value: Assigning value from res->nr_samples to
jit_tex->sample_stride here, but that stored value is overwritten before
it can be used.
Fixes: 2e5cddacf7 ("llvmpipe: add num_samples/sample_stride support to jit textures")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3022
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5179>
This commit is contained in:
parent
4e147e2c94
commit
76a2aeeef3
1 changed files with 1 additions and 1 deletions
|
|
@ -1014,7 +1014,7 @@ lp_setup_set_fragment_sampler_views(struct lp_setup_context *setup,
|
|||
jit_tex->height = res->height0;
|
||||
jit_tex->depth = res->depth0;
|
||||
jit_tex->first_level = jit_tex->last_level = 0;
|
||||
jit_tex->sample_stride = res->nr_samples;
|
||||
jit_tex->num_samples = res->nr_samples;
|
||||
jit_tex->sample_stride = 0;
|
||||
assert(jit_tex->base);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue