i965: Generalize the update_null_renderbuffer_surface vtbl hook to non-renderbuffers.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 10 Feb 2015 13:53:14 +0000 (15:53 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 10 Feb 2015 17:09:25 +0000 (19:09 +0200)
commit46b03d5400794736e04eee5d373673309ba286ad
tree4aeb5a31d4e761e3db46177479ddca693f01bce9
parent342b7ce7d4383db3f956e207f189376a94b359fe
i965: Generalize the update_null_renderbuffer_surface vtbl hook to non-renderbuffers.

Null surfaces are going to be useful to have something to point
unbound image units to, as the ARB_shader_image_load_store extension
requires us to behave deterministically in cases where some shader
tries to access an unbound image unit: Invalid stores and atomics are
supposed to be discarded and invalid loads are supposed to return
zero, which is precisely what the null surface does.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
src/mesa/drivers/dri/i965/gen8_surface_state.c