~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/compiler/spirv/vtn_alu.c

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
1301
1301
 
1302
1302
   vtn_fail_if(src->num_components * src->bit_size !=
1303
1303
               glsl_get_vector_elements(type->type) * glsl_get_bit_size(type->type),
1304
 
               "Source and destination of OpBitcast must have the same "
1305
 
               "total number of bits");
 
1304
               "Source (%%%u) and destination (%%%u) of OpBitcast must have the same "
 
1305
               "total number of bits", w[3], w[2]);
1306
1306
   nir_ssa_def *val =
1307
1307
      nir_bitcast_vector(&b->nb, src, glsl_get_bit_size(type->type));
1308
1308
   vtn_push_nir_ssa(b, w[2], val);