mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 03:30:10 +01:00
v3d: Assert that we do request the normal texturing return data.
An unused tex should be DCEed, but if it wasn't we'd run into trouble with not doing a TMUWT.
This commit is contained in:
parent
42210a4351
commit
24587ae8ae
1 changed files with 2 additions and 0 deletions
|
|
@ -183,6 +183,8 @@ v3d40_vir_emit_tex(struct v3d_compile *c, nir_tex_instr *instr)
|
|||
assert(p1_unpacked.output_type_32_bit ||
|
||||
p0_unpacked.return_words_of_texture_data < (1 << 2));
|
||||
|
||||
assert(p0_unpacked.return_words_of_texture_data != 0);
|
||||
|
||||
uint32_t p0_packed;
|
||||
V3D41_TMU_CONFIG_PARAMETER_0_pack(NULL,
|
||||
(uint8_t *)&p0_packed,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue