summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_context.h
diff options
context:
space:
mode:
authorTopi Pohjolainen <topi.pohjolainen@intel.com>2016-09-04 11:02:39 +0300
committerTopi Pohjolainen <topi.pohjolainen@intel.com>2016-09-12 08:58:38 +0300
commit22d9a4824baf0bf89bb8e39025ad01fecb213888 (patch)
treeb2032b96f1549aa0711660506928b811bd9727ae /src/mesa/drivers/dri/i965/brw_context.h
parent1f51217d99e7eb70a62b2611cd1b70f9b5a40fcf (diff)
downloadexternal_mesa3d-22d9a4824baf0bf89bb8e39025ad01fecb213888.zip
external_mesa3d-22d9a4824baf0bf89bb8e39025ad01fecb213888.tar.gz
external_mesa3d-22d9a4824baf0bf89bb8e39025ad01fecb213888.tar.bz2
i965: Track non-compressible sampling of renderbuffers
v3: - Actually set the flags when needed instead of falsely overwriting them (Jason). - Use more generic name for flag (dropped RENDERBUFFER) - Consult also shader images v4: - Consult only lossless compressd shader images v5: - Check the existence of renderbuffer before considering if it matches the given miptree Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index 7780ce5..2c55b5e 100644
--- a/src/mesa/drivers/dri/i965/brw_context.h
+++ b/src/mesa/drivers/dri/i965/brw_context.h
@@ -1333,6 +1333,16 @@ struct brw_context
struct brw_fast_clear_state *fast_clear_state;
+ /* Array of flags telling if auxiliary buffer is disabled for corresponding
+ * renderbuffer. If draw_aux_buffer_disabled[i] is set then use of
+ * auxiliary buffer for gl_framebuffer::_ColorDrawBuffers[i] is
+ * disabled.
+ * This is needed in case the same underlying buffer is also configured
+ * to be sampled but with a format that the sampling engine can't treat
+ * compressed or fast cleared.
+ */
+ bool draw_aux_buffer_disabled[MAX_DRAW_BUFFERS];
+
__DRIcontext *driContext;
struct intel_screen *intelScreen;
};