i965: Specialize SURFACE_STATE creation for shader time.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 7 Feb 2013 07:26:35 +0000 (23:26 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 14 Mar 2013 19:30:40 +0000 (12:30 -0700)
commit125b34cffbd377a3b27967b37767692796542250
treed52655eae9c43853531dce869b91160a41184e18
parentf27a220cadd1326e6293a2c3fb945b7765a85da4
i965: Specialize SURFACE_STATE creation for shader time.

This is basically a copy and paste of gen7_create_constant_surface, but
with the parameters filled in to offer a simpler interface.

It will diverge shortly.

I didn't bother adding it to the vtable for now since shader time is only
exposed on Gen7+.

v2: Replace tabs in the new code (by anholt)
    Add back dropped memset() and add a comment about HSW channel selects.

NOTE: This is a candidate for the 9.1 branch.
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_vs_surface_state.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c