Commit ce589969 authored by Icecream95's avatar Icecream95 Committed by Marge Bot
Browse files

pan/mdg: Support nir_intrinsic_load_global_constant



Treat it the same as nir_intrinsic_load_global.
Reviewed-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <mesa/mesa!8264>
parent 1db1537e
...@@ -1500,13 +1500,15 @@ emit_intrinsic(compiler_context *ctx, nir_intrinsic_instr *instr) ...@@ -1500,13 +1500,15 @@ emit_intrinsic(compiler_context *ctx, nir_intrinsic_instr *instr)
case nir_intrinsic_load_uniform: case nir_intrinsic_load_uniform:
case nir_intrinsic_load_ubo: case nir_intrinsic_load_ubo:
case nir_intrinsic_load_global: case nir_intrinsic_load_global:
case nir_intrinsic_load_global_constant:
case nir_intrinsic_load_shared: case nir_intrinsic_load_shared:
case nir_intrinsic_load_input: case nir_intrinsic_load_input:
case nir_intrinsic_load_kernel_input: case nir_intrinsic_load_kernel_input:
case nir_intrinsic_load_interpolated_input: { case nir_intrinsic_load_interpolated_input: {
bool is_uniform = instr->intrinsic == nir_intrinsic_load_uniform; bool is_uniform = instr->intrinsic == nir_intrinsic_load_uniform;
bool is_ubo = instr->intrinsic == nir_intrinsic_load_ubo; bool is_ubo = instr->intrinsic == nir_intrinsic_load_ubo;
bool is_global = instr->intrinsic == nir_intrinsic_load_global; bool is_global = instr->intrinsic == nir_intrinsic_load_global ||
instr->intrinsic == nir_intrinsic_load_global_constant;
bool is_shared = instr->intrinsic == nir_intrinsic_load_shared; bool is_shared = instr->intrinsic == nir_intrinsic_load_shared;
bool is_flat = instr->intrinsic == nir_intrinsic_load_input; bool is_flat = instr->intrinsic == nir_intrinsic_load_input;
bool is_kernel = instr->intrinsic == nir_intrinsic_load_kernel_input; bool is_kernel = instr->intrinsic == nir_intrinsic_load_kernel_input;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment