From 023dae71ef219307d168dc34389ba80e48e1a1aa Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 14 Oct 2012 04:12:32 +0200 Subject: r600g: emit the border color only when it's needed That depends on the texture wrap modes and filtering. --- src/gallium/drivers/r600/evergreen_state.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gallium/drivers/r600/evergreen_state.c') 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] = -- cgit v1.2.3