aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-05-13 11:10:46 -0700
committerJason Ekstrand <[email protected]>2017-05-26 07:58:01 -0700
commit726b68ad822ba07ec042c6d175208f49af8cf248 (patch)
tree052a48b058d330e1b4c107ff97307b6117314df1 /src/mesa
parentb06c63c782ccb52f29e8fd1ffc7d586648e5c360 (diff)
i965/blorp: Support copyteximage on gen4-5
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c
index 8a7fea443f7..7ffe8b885a0 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp.c
+++ b/src/mesa/drivers/dri/i965/brw_blorp.c
@@ -648,10 +648,6 @@ brw_blorp_copytexsubimage(struct brw_context *brw,
if (src_mt->num_samples > 8 || dst_mt->num_samples > 8)
return false;
- /* BLORP is only supported from Gen6 onwards. */
- if (brw->gen < 6)
- return false;
-
if (_mesa_get_format_base_format(src_rb->Format) !=
_mesa_get_format_base_format(dst_image->TexFormat)) {
return false;
@@ -666,6 +662,13 @@ brw_blorp_copytexsubimage(struct brw_context *brw,
return false;
}
+ /* We also can't handle any combined depth-stencil formats because we
+ * have to reinterpret as a color format.
+ */
+ if (_mesa_get_format_base_format(src_mt->format) == GL_DEPTH_STENCIL ||
+ _mesa_get_format_base_format(dst_mt->format) == GL_DEPTH_STENCIL)
+ return false;
+
if (!brw->format_supported_as_render_target[dst_image->TexFormat])
return false;