ttn: set dest_type for TXQ
It was failing an assertion in tgsi_to_nir and NIR validation. Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17691>
This commit is contained in:
parent
775578b885
commit
2474d92071
|
@ -1585,11 +1585,13 @@ ttn_txq(struct ttn_compile *c, nir_alu_dest dest, nir_ssa_def **src)
|
|||
|
||||
txs = nir_tex_instr_create(b->shader, 2);
|
||||
txs->op = nir_texop_txs;
|
||||
txs->dest_type = nir_type_uint32;
|
||||
get_texture_info(tgsi_inst->Texture.Texture,
|
||||
&txs->sampler_dim, &txs->is_shadow, &txs->is_array);
|
||||
|
||||
qlv = nir_tex_instr_create(b->shader, 1);
|
||||
qlv->op = nir_texop_query_levels;
|
||||
qlv->dest_type = nir_type_uint32;
|
||||
get_texture_info(tgsi_inst->Texture.Texture,
|
||||
&qlv->sampler_dim, &qlv->is_shadow, &qlv->is_array);
|
||||
|
||||
|
|
Loading…
Reference in New Issue