aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/blorp/blorp.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-09-12 11:46:22 -0700
committerJason Ekstrand <[email protected]>2016-09-12 16:48:56 -0700
commit2519237c2495adb9564062eed6b9cd225b886dc0 (patch)
treefd0d488e6cb18e1cd8ffa8dde018ff04cbf1caa2 /src/intel/blorp/blorp.c
parent48f195d7c6483ed00a6d02526c6f35bb527fcaba (diff)
intel/blorp: Handle the 512 layers restriction on Sandy Bridge
Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/blorp/blorp.c')
-rw-r--r--src/intel/blorp/blorp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intel/blorp/blorp.c b/src/intel/blorp/blorp.c
index 17c1ff4c134..8dfebbcb2ad 100644
--- a/src/intel/blorp/blorp.c
+++ b/src/intel/blorp/blorp.c
@@ -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);
}