diff options
author | Ilia Mirkin <[email protected]> | 2015-09-19 16:19:26 -0400 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-09-23 21:06:29 +0100 |
commit | c98217178b268905b9492eaa344ca68c20857042 (patch) | |
tree | f22ed3089b61e0999894a4d17e0ebf7cf583b757 /src | |
parent | 278739eb0169e25e82eae322e337e6c9a7390083 (diff) |
radeonsi: load fmask ptr relative to the resources array
res_ptr already contains the resource values. fmask_ptr needs to be
looked up relative to the start of the resource params.
Note that this only affects indirect loads of MS sampler arrays.
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Cc: "11.0" <[email protected]>
(cherry picked from commit 7d5162bdc0850c80f4b9427a2aac6b42c7dcceaa)
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index fa6c15a6591..d493329b31a 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -2300,7 +2300,7 @@ static void tex_fetch_args( lp_build_const_int32(gallivm, SI_FMASK_TEX_OFFSET), ""); fmask_ptr = LLVMGetParam(si_shader_ctx->radeon_bld.main_fn, SI_PARAM_RESOURCE); - fmask_ptr = build_indexed_load_const(si_shader_ctx, res_ptr, ind_index); + fmask_ptr = build_indexed_load_const(si_shader_ctx, fmask_ptr, ind_index); } } else { res_ptr = si_shader_ctx->resources[sampler_index]; |