diff options
author | Kenneth Graunke <[email protected]> | 2014-07-26 01:16:27 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-10-09 15:43:18 +0200 |
commit | 4ce11de4ae356375833cb403711f5af1ed681965 (patch) | |
tree | 30947c344a5f4f0a0f6a755645a2cc7dca8b3fda /src/gallium | |
parent | b7844d12487dbac702ecd734faeffa6fe1a61a83 (diff) |
i965: Skip uploading border color when unnecessary.
The border color is only needed when using the GL_CLAMP_TO_BORDER or
(deprecated) GL_CLAMP wrap modes; all others ignore it, including the
common GL_CLAMP_TO_EDGE and GL_REPEAT wrap modes.
In those cases, we can skip uploading it entirely, saving a bit of space
in the batchbuffer. Instead, we just point it at the start of the
batch (offset 0); we have to program something, and that address is safe
to read.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
Diffstat (limited to 'src/gallium')
0 files changed, 0 insertions, 0 deletions