mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
st/mesa: emit sampler view declaration in bitmap shader
In June 2015, Rob Clark started updating the tgsi utility code to emit SVIEW declarations in various shaders (for polygon stipple, blitting, etc). These patches do the same for the Mesa state tracker. The VMware driver will use this. v2: support both TGSI_TEXTURE_2D and _RECT Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
parent
72eb5a3cfe
commit
0f0a23d4d8
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue