i965/gen6/gs: upload ubo and pull constants surfaces.
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 7 Aug 2014 09:16:57 +0000 (11:16 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 19 Sep 2014 13:01:16 +0000 (15:01 +0200)
commit3a4aee34a24a7af7cc2f2a75ca4f5eae533b6f88
tree7120839a74a2dae27126586de272ae2787241727
parent6947a8a593ce1252ef380d653f29f8e225ef8b83
i965/gen6/gs: upload ubo and pull constants surfaces.

Uniforms declared as uniform blocks are stored in ubo surfaces and need to
be pulled from the geometry shader program so make sure we upload them first
and do the same for pull constants.

This fixes all piglit tests that use uniform blocks:
bin/shader_runner tests/spec/glsl-1.50/uniform_buffer/gs-*

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_state_upload.c