summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/evergreen_state.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-05-02 02:38:20 +0200
committerMarek Olšák <[email protected]>2011-05-06 20:13:05 +0200
commitd931b0d8b360fc0222d295eca38aaee3e4e5d0be (patch)
tree60748a6eae3beec46086b5e38a9a1d7bb21c6586 /src/gallium/drivers/r600/evergreen_state.c
parenta5f0a11477ae90f47f3adb59a93c5576dc8c7325 (diff)
r600g: implement seamless_cube_map for evergreen
The r600/r700 support will follow soon.
Diffstat (limited to 'src/gallium/drivers/r600/evergreen_state.c')
-rw-r--r--src/gallium/drivers/r600/evergreen_state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c
index 3384a76803c..502f2663e8b 100644
--- a/src/gallium/drivers/r600/evergreen_state.c
+++ b/src/gallium/drivers/r600/evergreen_state.c
@@ -332,6 +332,7 @@ static void *evergreen_create_sampler_state(struct pipe_context *ctx,
0xFFFFFFFF, NULL);
r600_pipe_state_add_reg(rstate, R_03C008_SQ_TEX_SAMPLER_WORD2_0,
S_03C008_LOD_BIAS(S_FIXED(CLAMP(state->lod_bias, -16, 16), 8)) |
+ (state->seamless_cube_map ? 0 : S_03C008_DISABLE_CUBE_WRAP(1)) |
S_03C008_TYPE(1),
0xFFFFFFFF, NULL);