summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_blit.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-09-10 04:53:33 +0200
committerMarek Olšák <[email protected]>2012-09-13 20:18:44 +0200
commitf2eac1423a92ba47981ba50a4af22e6596059cf4 (patch)
treeeb7a76c7832f835284fb1122a85349dbcffb7c93 /src/gallium/drivers/r600/r600_blit.c
parent3fe78594b1221358f4ba96072d952e33a7e54a76 (diff)
r600g: put sampler states and views into an array indexed by shader type
Reviewed-by: Jerome Glisse <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_blit.c')
-rw-r--r--src/gallium/drivers/r600/r600_blit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c
index 584b7fc1806..a49b4530078 100644
--- a/src/gallium/drivers/r600/r600_blit.c
+++ b/src/gallium/drivers/r600/r600_blit.c
@@ -79,12 +79,12 @@ static void r600_blitter_begin(struct pipe_context *ctx, enum r600_blitter_op op
if (op & R600_SAVE_TEXTURES) {
util_blitter_save_fragment_sampler_states(
- rctx->blitter, util_last_bit(rctx->ps_samplers.states.enabled_mask),
- (void**)rctx->ps_samplers.states.states);
+ rctx->blitter, util_last_bit(rctx->samplers[PIPE_SHADER_FRAGMENT].states.enabled_mask),
+ (void**)rctx->samplers[PIPE_SHADER_FRAGMENT].states.states);
util_blitter_save_fragment_sampler_views(
- rctx->blitter, util_last_bit(rctx->ps_samplers.views.enabled_mask),
- (struct pipe_sampler_view**)rctx->ps_samplers.views.views);
+ rctx->blitter, util_last_bit(rctx->samplers[PIPE_SHADER_FRAGMENT].views.enabled_mask),
+ (struct pipe_sampler_view**)rctx->samplers[PIPE_SHADER_FRAGMENT].views.views);
}
if ((op & R600_DISABLE_RENDER_COND) && rctx->current_render_cond) {