gallium: add support for layered rendering
authorRoland Scheidegger <sroland@vmware.com>
Sat, 1 Jun 2013 18:02:17 +0000 (20:02 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Sat, 1 Jun 2013 18:03:59 +0000 (20:03 +0200)
commit6b53e2b0380ce1617402217cb77d5670a44c3fb5
tree9f08e11c326a16d420b6421538d32c4682bafd03
parent458a9a0f85b93e3520c33dd3b502e26a31f08e4b
gallium: add support for layered rendering

Since pipe_surface already has all the necessary fields no interface
changes are necessary except adding a new shader semantic value
(TGSI_SEMANTIC_LAYER).
(Note that what GL knows as "gl_Layer" variable d3d10 is naming
"RENDER_TARGET_ARRAY_INDEX".)

v2: drop cap bit (just tied to geometry shader), add docs.
src/gallium/docs/source/tgsi.rst
src/gallium/include/pipe/p_shader_tokens.h