commit | 98badd7f6eaa0ac3ad3d5375f084b84172bb7582 | [log] [tgz] |
---|---|---|
author | Charmaine Lee <charmainel@vmware.com> | Tue Aug 01 15:58:50 2017 -0700 |
committer | Brian Paul <brianp@vmware.com> | Tue Sep 05 10:31:18 2017 -0600 |
tree | 257747cde945988df07ab8d27aef1d1a4c6d577c | |
parent | e439908af9665b50443f1196cb55388c69d0c7d7 [diff] |
svga: avoid emitting redundant SetShaderResources and SetVertexBuffers Minor performance improvement in avoiding binding the same shader resource or the same vertex buffer for the same slot. Tested with MTT glretrace. v2: Per Brian's suggestion, add a helper function to do vertex buffer comparision. v3: Change the helper function to vertex_buffers_equal(). Reviewed-by: Brian Paul <brianp@vmware.com>