summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_tex_sample.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-08-21 10:27:46 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-29 09:21:39 +0100
commit1e4376a68fae2156018d2e3423df521c6db70013 (patch)
treede0e46d21f2167f028cac546629793e17396023c /src/gallium/drivers/llvmpipe/lp_tex_sample.h
parentf10ee9a0a1f75dfbf4f2ed1407b55a2511b61a48 (diff)
llvmpipe: Back port recent softpipe-opt improvements from Keith.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_tex_sample.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_tex_sample.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_tex_sample.h b/src/gallium/drivers/llvmpipe/lp_tex_sample.h
index 727d56056f..628ec3f1ef 100644
--- a/src/gallium/drivers/llvmpipe/lp_tex_sample.h
+++ b/src/gallium/drivers/llvmpipe/lp_tex_sample.h
@@ -42,6 +42,14 @@ struct lp_shader_sampler
{
struct tgsi_sampler base; /**< base class */
+ unsigned processor;
+
+ /* For lp_get_samples_2d_linear_POT:
+ */
+ unsigned xpot;
+ unsigned ypot;
+ unsigned level;
+
const struct pipe_texture *texture;
const struct pipe_sampler_state *sampler;
@@ -50,28 +58,21 @@ struct lp_shader_sampler
-static INLINE const struct lp_shader_sampler *
+static INLINE struct lp_shader_sampler *
lp_shader_sampler(const struct tgsi_sampler *sampler)
{
- return (const struct lp_shader_sampler *) sampler;
+ return (struct lp_shader_sampler *) sampler;
}
-extern void
-lp_get_samples_fragment(struct tgsi_sampler *tgsi_sampler,
- const float s[QUAD_SIZE],
- const float t[QUAD_SIZE],
- const float p[QUAD_SIZE],
- float lodbias,
- float rgba[NUM_CHANNELS][QUAD_SIZE]);
extern void
-lp_get_samples_vertex(struct tgsi_sampler *tgsi_sampler,
- const float s[QUAD_SIZE],
- const float t[QUAD_SIZE],
- const float p[QUAD_SIZE],
- float lodbias,
- float rgba[NUM_CHANNELS][QUAD_SIZE]);
+lp_get_samples(struct tgsi_sampler *tgsi_sampler,
+ const float s[QUAD_SIZE],
+ const float t[QUAD_SIZE],
+ const float p[QUAD_SIZE],
+ float lodbias,
+ float rgba[NUM_CHANNELS][QUAD_SIZE]);
#endif /* LP_TEX_SAMPLE_H */