mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 17:40:25 +01:00
nir: Fix unused-variable compile warnings
Fixes:8492e78f9d("nir/deref: Handle SSBO array bindings specially") Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17021> (cherry picked from commit15f394cc7a)
This commit is contained in:
parent
fa4d248595
commit
191034cd6a
2 changed files with 1 additions and 7 deletions
|
|
@ -490,7 +490,7 @@
|
|||
"description": "nir: Fix unused-variable compile warnings",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "8492e78f9d14c187596c13725f6974816d02a0e9"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1429,8 +1429,6 @@ TEST_F(nir_copy_prop_vars_test, ssbo_array_binding_indirect)
|
|||
nir_variable *out = create_var(nir_var_mem_ssbo, ifc_type, "out");
|
||||
out->data.access = ACCESS_RESTRICT;
|
||||
|
||||
nir_ssa_def *i = nir_load_local_invocation_index(b);
|
||||
|
||||
nir_deref_instr *ssbo_0 =
|
||||
nir_build_deref_array_imm(b, nir_build_deref_var(b, ssbo_arr), 0);
|
||||
nir_deref_instr *ssbo_0_x = nir_build_deref_struct(b, ssbo_0, 0);
|
||||
|
|
@ -1475,8 +1473,6 @@ TEST_F(nir_copy_prop_vars_test, restrict_ssbo_array_binding)
|
|||
nir_variable *out = create_var(nir_var_mem_ssbo, ifc_type, "out");
|
||||
out->data.access = ACCESS_RESTRICT;
|
||||
|
||||
nir_ssa_def *i = nir_load_local_invocation_index(b);
|
||||
|
||||
nir_deref_instr *ssbo_0 =
|
||||
nir_build_deref_array_imm(b, nir_build_deref_var(b, ssbo_arr), 0);
|
||||
nir_deref_instr *ssbo_0_x = nir_build_deref_struct(b, ssbo_0, 0);
|
||||
|
|
@ -1526,8 +1522,6 @@ TEST_F(nir_copy_prop_vars_test, aliasing_ssbo_array_binding)
|
|||
nir_variable *out = create_var(nir_var_mem_ssbo, ifc_type, "out");
|
||||
out->data.access = ACCESS_RESTRICT;
|
||||
|
||||
nir_ssa_def *i = nir_load_local_invocation_index(b);
|
||||
|
||||
nir_deref_instr *ssbo_0 =
|
||||
nir_build_deref_array_imm(b, nir_build_deref_var(b, ssbo_arr), 0);
|
||||
nir_deref_instr *ssbo_0_x = nir_build_deref_struct(b, ssbo_0, 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue