mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-25 09:20:30 +01:00
isl/state: fix assert on raw buffer surface state minimum size
From IVB PRM, SURFACE_STATE::Height:
"For typed buffer and structured buffer surfaces, the number of
entries in the buffer ranges from 1 to 2^27 . For raw buffer
surfaces, the number of entries in the buffer is the number of bytes
which can range from 1 to 2^30."
The minimum value is 1, according to the spec. The spec quote
was already added into the code by 028f6d8317.
Fixes crashing tests under:
dEQP-VK.robustness.buffer_access.*
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
42b9057447
commit
a9c488f285
1 changed files with 1 additions and 1 deletions
|
|
@ -671,7 +671,7 @@ isl_genX(buffer_fill_state_s)(void *state,
|
|||
*/
|
||||
if (info->format == ISL_FORMAT_RAW) {
|
||||
assert(num_elements <= (1ull << 30));
|
||||
assert((num_elements & 3) == 0);
|
||||
assert(num_elements > 0);
|
||||
} else {
|
||||
assert(num_elements <= (1ull << 27));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue