summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTopi Pohjolainen <[email protected]>2018-01-16 14:17:00 +0200
committerTopi Pohjolainen <[email protected]>2018-01-24 10:54:08 +0200
commitec4bb693a0175744465f272a8bcea2db043ba1bc (patch)
tree3c5baf837ae2b9ce2344f0ae51aa1c4e07871c06 /src
parent4064fe59e7144fa822568543cfcc043387645d4e (diff)
i965: Don't try to disable render aux buffers for compute
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104546 Reviewed-by: Kenneth Graunke <[email protected]> Signed-off-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c
index fc349adf7f4..8692b886e5b 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.c
+++ b/src/mesa/drivers/dri/i965/brw_draw.c
@@ -482,8 +482,10 @@ brw_predraw_resolve_inputs(struct brw_context *brw, bool rendering)
tex_obj = intel_texture_object(u->TexObj);
if (tex_obj && tex_obj->mt) {
- intel_disable_rb_aux_buffer(brw, tex_obj->mt, 0, ~0,
- "as a shader image");
+ if (rendering) {
+ intel_disable_rb_aux_buffer(brw, tex_obj->mt, 0, ~0,
+ "as a shader image");
+ }
intel_miptree_prepare_image(brw, tex_obj->mt);