mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
v3dv/meta: Use sized types for nir_tex_instr::dest_type
Acked-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7989>
This commit is contained in:
parent
219b84fd5f
commit
2a470ab0d0
1 changed files with 3 additions and 5 deletions
|
|
@ -3097,7 +3097,7 @@ get_texel_buffer_copy_fs(struct v3dv_device *device, VkFormat format)
|
|||
tex->src[0].src = nir_src_for_ssa(texel_offset);
|
||||
tex->src[1].src_type = nir_tex_src_texture_deref;
|
||||
tex->src[1].src = nir_src_for_ssa(tex_deref);
|
||||
tex->dest_type = nir_type_uint;
|
||||
tex->dest_type = nir_type_uint32;
|
||||
tex->is_array = false;
|
||||
tex->coord_components = 1;
|
||||
nir_ssa_dest_init(&tex->instr, &tex->dest, 4, 32, "texel buffer result");
|
||||
|
|
@ -4309,8 +4309,7 @@ build_nir_tex_op_read(struct nir_builder *b,
|
|||
tex->src[1].src = nir_src_for_ssa(tex_deref);
|
||||
tex->src[2].src_type = nir_tex_src_sampler_deref;
|
||||
tex->src[2].src = nir_src_for_ssa(tex_deref);
|
||||
tex->dest_type =
|
||||
nir_alu_type_get_base_type(nir_get_nir_type_for_glsl_base_type(tex_type));
|
||||
tex->dest_type = nir_get_nir_type_for_glsl_base_type(tex_type);
|
||||
tex->is_array = glsl_sampler_type_is_array(sampler_type);
|
||||
tex->coord_components = tex_pos->num_components;
|
||||
|
||||
|
|
@ -4338,8 +4337,7 @@ build_nir_tex_op_ms_fetch_sample(struct nir_builder *b,
|
|||
tex->src[2].src = nir_src_for_ssa(tex_deref);
|
||||
tex->src[3].src_type = nir_tex_src_ms_index;
|
||||
tex->src[3].src = nir_src_for_ssa(sample_idx);
|
||||
tex->dest_type =
|
||||
nir_alu_type_get_base_type(nir_get_nir_type_for_glsl_base_type(tex_type));
|
||||
tex->dest_type = nir_get_nir_type_for_glsl_base_type(tex_type);
|
||||
tex->is_array = false;
|
||||
tex->coord_components = tex_pos->num_components;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue