mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 15:40:31 +01:00
brw: Fix cooperative matrix constant sources other than src0
Code was wrongly using src0 to pick the constant value.
Fixes: bf9ad36f2d ("brw: Properly handle cooperative matrices created with constants")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39769>
This commit is contained in:
parent
e2bf82f900
commit
6b0e29bc77
1 changed files with 1 additions and 1 deletions
|
|
@ -4330,7 +4330,7 @@ brw_from_nir_emit_cs_intrinsic(nir_to_brw_state &ntb,
|
|||
*/
|
||||
const unsigned num_components = nir_src_num_components(nsrc);
|
||||
const unsigned bit_size = nir_src_bit_size(nsrc);
|
||||
const nir_const_value *nval = nir_src_as_const_value(instr->src[0]);
|
||||
const nir_const_value *nval = nir_src_as_const_value(nsrc);
|
||||
|
||||
assert(bit_size <= 32);
|
||||
for (unsigned j = 1; j < num_components; j++)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue