summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/evergreen_state.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-10-14 04:12:32 +0200
committerMarek Olšák <[email protected]>2012-10-15 16:04:09 +0200
commit023dae71ef219307d168dc34389ba80e48e1a1aa (patch)
tree0a9b42d30babef227ae9316a39dba5cfce94169d /src/gallium/drivers/r600/evergreen_state.c
parent33dda8f4fb4298d6c8e04d2b5fe569b56043b28d (diff)
r600g: emit the border color only when it's needed
That depends on the texture wrap modes and filtering.
Diffstat (limited to 'src/gallium/drivers/r600/evergreen_state.c')
-rw-r--r--src/gallium/drivers/r600/evergreen_state.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c
index baef36731a4..3ee125c8209 100644
--- a/src/gallium/drivers/r600/evergreen_state.c
+++ b/src/gallium/drivers/r600/evergreen_state.c
@@ -939,8 +939,7 @@ static void *evergreen_create_sampler_state(struct pipe_context *ctx,
return NULL;
}
- ss->border_color_use = state->border_color.ui[0] || state->border_color.ui[1] ||
- state->border_color.ui[2] || state->border_color.ui[3];
+ ss->border_color_use = sampler_state_needs_border_color(state);
/* R_03C000_SQ_TEX_SAMPLER_WORD0_0 */
ss->tex_sampler_words[0] =