diff options
author | Kenneth Graunke <[email protected]> | 2014-06-22 22:27:49 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-06-30 00:08:54 -0700 |
commit | 7577cdd8300068bdf1eda426951d7141450283aa (patch) | |
tree | 545c6133c9922612147d1e431d6daa668e6d2d65 /src/mesa/x86-64/xform4.S | |
parent | f3c5b2f7d08f8a2a41df0a224cd6600ce4260fa1 (diff) |
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 <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/x86-64/xform4.S')
0 files changed, 0 insertions, 0 deletions