gallium: add PIPE_SHADER_CAP_SUBROUTINES
authorMarek Olšák <maraeo@gmail.com>
Sun, 14 Nov 2010 14:34:59 +0000 (15:34 +0100)
committerMarek Olšák <maraeo@gmail.com>
Mon, 22 Nov 2010 11:41:22 +0000 (12:41 +0100)
commit9aa089eac05ebefafb6610b4a7e209b2fd1e93f6
tree5eaacced5d1d1f7a7784400196be6eff1da2328c
parentb2ddb93ff3b8c88682634ccdef247967e31fab84
gallium: add PIPE_SHADER_CAP_SUBROUTINES

This fixes piglit/glsl-vs-main-return and glsl-fs-main-return for the drivers
which don't support RET (i915g, r300g, r600g, svga).

ir_to_mesa does not currently generate subroutines, but it's a matter of time
till it's added. It would then break all the drivers which don't implement
them, so this CAP makes sense.

Signed-off-by: Marek Olšák <maraeo@gmail.com>
src/gallium/auxiliary/tgsi/tgsi_exec.h
src/gallium/drivers/i915/i915_screen.c
src/gallium/drivers/i965/brw_screen.c
src/gallium/drivers/nv50/nv50_screen.c
src/gallium/drivers/nvfx/nvfx_screen.c
src/gallium/drivers/r300/r300_screen.c
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/svga/svga_screen.c
src/gallium/include/pipe/p_defines.h
src/mesa/state_tracker/st_extensions.c