diff options
author | Roland Scheidegger <[email protected]> | 2013-03-08 22:29:34 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2013-03-11 17:07:51 +0100 |
commit | ef17cc9cb697a7146cf2a3dba2eb0f6a968918cc (patch) | |
tree | f409b9ec2c9fd536fc42f063590f4a6704033378 /src/gallium/drivers/softpipe/sp_state.h | |
parent | f33c744fb9b4bb711335412018ecc108a4b38355 (diff) |
softpipe: don't use samplers with prebaked sampler and sampler_view state
This is needed for handling the dx10-style sample opcodes.
This also simplifies the logic by getting rid of sampler variants
completely (sampler_views though OTOH have sort of variants because
some of their state is different depending on the shader stage they
are bound to).
No significant performance difference (openarena run:
840 frames in 459.8 seconds vs. 840 frames in 460.5 seconds).
v2: fix reference counting bug spotted by Jose.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_state.h')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_state.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_state.h b/src/gallium/drivers/softpipe/sp_state.h index e2c49d27bd5..bf8370ecfbe 100644 --- a/src/gallium/drivers/softpipe/sp_state.h +++ b/src/gallium/drivers/softpipe/sp_state.h @@ -156,6 +156,14 @@ void softpipe_update_derived(struct softpipe_context *softpipe, unsigned prim); void +softpipe_set_sampler_views(struct pipe_context *pipe, + unsigned shader, + unsigned start, + unsigned num, + struct pipe_sampler_view **views); + + +void softpipe_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info); |