mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
intel/blorp: Check for layer fast-clear restriction
v2: Update commit title (Jason Ekstrand) Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> (v1) Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
b46a071758
commit
6b23c65f3a
1 changed files with 5 additions and 0 deletions
|
|
@ -308,6 +308,11 @@ blorp_fast_clear(struct blorp_batch *batch,
|
|||
uint32_t level, uint32_t start_layer, uint32_t num_layers,
|
||||
uint32_t x0, uint32_t y0, uint32_t x1, uint32_t y1)
|
||||
{
|
||||
/* Ensure that all layers undergoing the clear have an auxiliary buffer. */
|
||||
assert(start_layer + num_layers <=
|
||||
MAX2(surf->aux_surf->logical_level0_px.depth >> level,
|
||||
surf->aux_surf->logical_level0_px.array_len));
|
||||
|
||||
struct blorp_params params;
|
||||
blorp_params_init(¶ms);
|
||||
params.num_layers = num_layers;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue