i965: Track non-compressible sampling of renderbuffers
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Sun, 4 Sep 2016 08:02:39 +0000 (11:02 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Mon, 12 Sep 2016 05:58:38 +0000 (08:58 +0300)
commit22d9a4824baf0bf89bb8e39025ad01fecb213888
treeb2032b96f1549aa0711660506928b811bd9727ae
parent1f51217d99e7eb70a62b2611cd1b70f9b5a40fcf
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>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_wm_surface_state.c