summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/i915/i915_resource_texture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_resource_texture.c b/src/gallium/drivers/i915/i915_resource_texture.c
index 3a00d08ad57..62ec580fd31 100644
--- a/src/gallium/drivers/i915/i915_resource_texture.c
+++ b/src/gallium/drivers/i915/i915_resource_texture.c
@@ -736,7 +736,8 @@ i915_texture_get_transfer(struct pipe_context *pipe,
transfer->b.layer_stride = 0;
transfer->b.data = NULL;
- /* only support textures we can render to, because we need that for u_blitter */
+ /* if we use staging transfers, only support textures we can render to,
+ * because we need that for u_blitter */
if (i915->blitter &&
i915_is_format_supported(NULL, /* screen */
transfer->b.resource->format,