i965: Don't try to disable render aux buffers for compute
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Tue, 16 Jan 2018 12:17:00 +0000 (14:17 +0200)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 24 Jan 2018 08:54:08 +0000 (10:54 +0200)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104546
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_draw.c

index fc349adf7f43c69f3d4bead0694e7c4409d480d5..8692b886e5b2a3f23c35f8c67a06b7b0536f6a15 100644 (file)
@@ -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);