intel/blorp: Handle the 512 layers restriction on Sandy Bridge
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
@@ -139,6 +139,12 @@ brw_blorp_surface_info_init(struct blorp_context *blorp,
|
||||
info->view.array_len -= info->view.base_array_layer;
|
||||
info->z_offset = 0;
|
||||
}
|
||||
|
||||
/* Sandy Bridge has a limit of a maximum of 512 layers for layered
|
||||
* rendering.
|
||||
*/
|
||||
if (is_render_target && blorp->isl_dev->info->gen == 6)
|
||||
info->view.array_len = MIN2(info->view.array_len, 512);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user