mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 08:28:21 +02:00
radeonsi/nir: get correct type for images inside structs
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
292887ac0d
commit
e106e0f2dd
1 changed files with 2 additions and 1 deletions
|
|
@ -163,11 +163,12 @@ static void scan_instruction(struct tgsi_shader_info *info,
|
|||
break;
|
||||
}
|
||||
case nir_intrinsic_image_deref_store: {
|
||||
const nir_deref_instr *image_deref = nir_instr_as_deref(intr->src[0].ssa->parent_instr);
|
||||
nir_variable *var = intrinsic_get_var(intr);
|
||||
if (var->data.bindless) {
|
||||
info->uses_bindless_images = true;
|
||||
|
||||
if (glsl_get_sampler_dim(var->type) == GLSL_SAMPLER_DIM_BUF)
|
||||
if (glsl_get_sampler_dim(image_deref->type) == GLSL_SAMPLER_DIM_BUF)
|
||||
info->uses_bindless_buffer_store = true;
|
||||
else
|
||||
info->uses_bindless_image_store = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue