pan/midg: Use the sampler index passed to the texture instruction
Sampler index and texture index can differ. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10033>
This commit is contained in:
committed by
Marge Bot
parent
477c67d79e
commit
0fc7c1f971
@@ -2303,7 +2303,7 @@ emit_texop_native(compiler_context *ctx, nir_tex_instr *instr,
|
||||
nir_dest *dest = &instr->dest;
|
||||
|
||||
int texture_index = instr->texture_index;
|
||||
int sampler_index = texture_index;
|
||||
int sampler_index = instr->sampler_index;
|
||||
|
||||
nir_alu_type dest_base = nir_alu_type_get_base_type(instr->dest_type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user