diff options
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_cb_bitmap_shader.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_bitmap_shader.c b/src/mesa/state_tracker/st_cb_bitmap_shader.c index a0b9be33415..7ce078d5008 100644 --- a/src/mesa/state_tracker/st_cb_bitmap_shader.c +++ b/src/mesa/state_tracker/st_cb_bitmap_shader.c @@ -91,6 +91,10 @@ transform_instr(struct tgsi_transform_context *tctx, /* Declare the sampler. */ tgsi_transform_sampler_decl(tctx, ctx->sampler_index); + /* Declare the sampler view. */ + tgsi_transform_sampler_view_decl(tctx, ctx->sampler_index, + tgsi_tex_target, TGSI_RETURN_TYPE_FLOAT); + /* TEX tmp0, fragment.texcoord[0], texture[0], 2D; */ tgsi_transform_tex_inst(tctx, TGSI_FILE_TEMPORARY, 0, |