mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 01:18:06 +02:00
i965: Don't use MAX_SURFACES in mark_surface_used
Vulkan doesn't respect MAX_SURFACES so this assert isn't valid in that case. It should, however, assert that it isn't insanely large. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
0d2c9ce1ce
commit
035616cb8e
1 changed files with 4 additions and 1 deletions
|
|
@ -33,7 +33,10 @@ extern "C" void
|
|||
brw_mark_surface_used(struct brw_stage_prog_data *prog_data,
|
||||
unsigned surf_index)
|
||||
{
|
||||
assert(surf_index < BRW_MAX_SURFACES);
|
||||
/* A binding table index is 8 bits and the top 3 values are reserved for
|
||||
* special things (stateless and SLM).
|
||||
*/
|
||||
assert(surf_index <= 252);
|
||||
|
||||
prog_data->binding_table.size_bytes =
|
||||
MAX2(prog_data->binding_table.size_bytes, (surf_index + 1) * 4);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue