diff options
author | Vinson Lee <[email protected]> | 2020-05-22 17:08:04 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-23 20:30:15 +0000 |
commit | 76a2aeeef3d314e3eb1f35029e1e86bf69ad5689 (patch) | |
tree | 9cd69c10540ef56ba0428f7e300df662f1dc220d /src | |
parent | 4e147e2c94e20d144d55996de288d6737e5a76f1 (diff) |
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: 2e5cddacf7fb ("llvmpipe: add num_samples/sample_stride support to jit textures")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3022
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5179>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c index 0d8bc463263..5780337d5ae 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_setup.c @@ -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); } |