i965: Use brw_upload_binding_table() for the pixel shader as well.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 13 Sep 2013 22:27:04 +0000 (15:27 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Sep 2013 17:52:57 +0000 (10:52 -0700)
commit113a75ff2d5013583bc41f5bd71e24d7897cd459
tree02dea7a7bbbfedb9bc4eebe5f585768eb992f33a
parent72340839cae5db8630256f48868d8ce4a526a687
i965: Use brw_upload_binding_table() for the pixel shader as well.

This is not quite the same: brw_upload_binding_table() also has code to
early-return if there are no entries, while the existing code did not.

The PS binding table is unlikely to be empty since it will have at least
one color buffer.  If it ever is empty, early returning seems wise.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c