mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
vtn: Use nir_ instead of nir_build_ helpers
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23858>
This commit is contained in:
parent
707f92f248
commit
083f7dba5b
2 changed files with 10 additions and 10 deletions
|
|
@ -5939,13 +5939,13 @@ ray_query_load_intrinsic_create(struct vtn_builder *b, SpvOp opcode,
|
|||
struct vtn_ssa_value *ssa = vtn_create_ssa_value(b, value.glsl_type);
|
||||
for (unsigned i = 0; i < elems; i++) {
|
||||
ssa->elems[i]->def =
|
||||
nir_build_rq_load(&b->nb,
|
||||
glsl_get_vector_elements(elem_type),
|
||||
glsl_get_bit_size(elem_type),
|
||||
src0,
|
||||
.ray_query_value = value.nir_value,
|
||||
.committed = committed,
|
||||
.column = i);
|
||||
nir_rq_load(&b->nb,
|
||||
glsl_get_vector_elements(elem_type),
|
||||
glsl_get_bit_size(elem_type),
|
||||
src0,
|
||||
.ray_query_value = value.nir_value,
|
||||
.committed = committed,
|
||||
.column = i);
|
||||
}
|
||||
|
||||
vtn_push_ssa_value(b, w[2], ssa);
|
||||
|
|
|
|||
|
|
@ -2683,9 +2683,9 @@ vtn_handle_variables(struct vtn_builder *b, SpvOp opcode,
|
|||
struct vtn_pointer *array = vtn_pointer_dereference(b, ptr, &chain);
|
||||
|
||||
nir_ssa_def *array_length =
|
||||
nir_build_deref_buffer_array_length(&b->nb, 32,
|
||||
vtn_pointer_to_ssa(b, array),
|
||||
.access=ptr->access | ptr->type->access);
|
||||
nir_deref_buffer_array_length(&b->nb, 32,
|
||||
vtn_pointer_to_ssa(b, array),
|
||||
.access=ptr->access | ptr->type->access);
|
||||
|
||||
vtn_push_nir_ssa(b, w[2], array_length);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue