diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2014-06-22 22:27:49 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2014-06-30 00:08:54 -0700 |
commit | 7577cdd8300068bdf1eda426951d7141450283aa (patch) | |
tree | 545c6133c9922612147d1e431d6daa668e6d2d65 /src/mapi/glapi/gen/gl_API.xml | |
parent | f3c5b2f7d08f8a2a41df0a224cd6600ce4260fa1 (diff) | |
download | external_mesa3d-7577cdd8300068bdf1eda426951d7141450283aa.zip external_mesa3d-7577cdd8300068bdf1eda426951d7141450283aa.tar.gz external_mesa3d-7577cdd8300068bdf1eda426951d7141450283aa.tar.bz2 |
meta: Use AMD_vertex_shader_layer instead of a GS for layered clears.
On i965, enabling and disabling the GS is not free: you have to do a
full pipeline stall, reconfigure the URB and push constant space, and
emit a bunch of state. Most clears aren't layered, so the GS isn't
needed in the common case. But we turned it on universally.
Using AMD_vertex_shader_layer allows us to skip setting up the GS
altogether, while achieving the same effect.
According to Ilia, current nVidia GPUs can't do AMD_vertex_shader_layer.
However, since nouveau is Gallium-based, they're unlikely to ever care
about this path. Intel and AMD GPUs both support the extension.
Since i965 is the only driver using this path which does layered
rendering, we may as well target it at that.
v2: Improve commit message. No code changes.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'src/mapi/glapi/gen/gl_API.xml')
0 files changed, 0 insertions, 0 deletions