summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_context.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-12-17 18:59:58 -0700
committerBrian Paul <brian.paul@tungstengraphics.com>2008-12-17 18:59:58 -0700
commit3ffd529ff19bf8dd7b022a267bf2afe44c7f0f65 (patch)
treee2e6059016cd83dd1af7d80a7cd6ca2965192617 /src/gallium/drivers/softpipe/sp_context.h
parentd1c8af7c0a18340fdde45ade6f612939a3c8e62a (diff)
softpipe: fix vertex shader texture sampling
Need to disable/bypass lambda calculation since derivatives of texcoords are meaningless for adjacent vertices.
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_context.h')
-rw-r--r--src/gallium/drivers/softpipe/sp_context.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/softpipe/sp_context.h b/src/gallium/drivers/softpipe/sp_context.h
index 790143aecc..7ab12a6d70 100644
--- a/src/gallium/drivers/softpipe/sp_context.h
+++ b/src/gallium/drivers/softpipe/sp_context.h
@@ -142,8 +142,10 @@ struct softpipe_context {
/** TGSI exec things */
struct {
- struct sp_shader_sampler samplers[PIPE_MAX_SAMPLERS];
- struct sp_shader_sampler *samplers_list[PIPE_MAX_SAMPLERS];
+ struct sp_shader_sampler vert_samplers[PIPE_MAX_SAMPLERS];
+ struct sp_shader_sampler *vert_samplers_list[PIPE_MAX_SAMPLERS];
+ struct sp_shader_sampler frag_samplers[PIPE_MAX_SAMPLERS];
+ struct sp_shader_sampler *frag_samplers_list[PIPE_MAX_SAMPLERS];
} tgsi;
/** The primitive drawing context */