diff options
author | Charmaine Lee <[email protected]> | 2016-04-22 16:06:32 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-04-25 12:59:29 -0600 |
commit | c4cb879f00de89c300462e7b2d0f221d920c396f (patch) | |
tree | 8c6b251b6cdb626832ffa52de4b149a503300956 /docs/relnotes/11.0.0.html | |
parent | 686cd3c606536cff3fe6d80f8ebeeca7afa1b37e (diff) |
svga: eliminiate unnecessary constant buffer updates
Currently if the texture binding is changed, emit_fs_consts()
is triggered to update texture scaling factor for
rectangle texture or texture buffer size in the constant buffer.
But the update is only relevant if the texture binding includes
a rectangle texture or a texture buffer.
To eliminate the unnecessary constant buffer updates due to other texture
binding changes, a new flag SVGA_NEW_TEXTURE_CONSTS will be used
to trigger fragment shader constant buffer update when a rectangle texture
or a texture buffer is bound.
With this patch, the number of constant buffer updates in Lightsmark2008
reduces from hundreds per frame to about 28 per frame.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'docs/relnotes/11.0.0.html')
0 files changed, 0 insertions, 0 deletions