mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 17:10:11 +01:00
vc4: Fix a typo in the validation for miplevels.
It meant that LUMALPHA was being marked as *many* miplevels, and unsurprisingly wouldn't validate. On the other hand, some miplevel counts wouldn't get the small mips validated at all.
This commit is contained in:
parent
74ea87cde4
commit
1b6dcaf40c
1 changed files with 1 additions and 1 deletions
|
|
@ -703,7 +703,7 @@ reloc_tex(struct exec_info *exec,
|
|||
uint32_t p1 = *(uint32_t *)(uniform_data_u + sample->p_offset[1]);
|
||||
uint32_t *validated_p0 = exec->uniforms_v + sample->p_offset[0];
|
||||
uint32_t offset = p0 & ~0xfff;
|
||||
uint32_t miplevels = (p0 & 0x15);
|
||||
uint32_t miplevels = (p0 & 15);
|
||||
uint32_t width = (p1 >> 8) & 2047;
|
||||
uint32_t height = (p1 >> 20) & 2047;
|
||||
uint32_t cpp, tiling_format;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue