st/mesa: use correct TGSI texture target in bitmap fragment shader
Depending on the driver's support for NPOT textures, we might use a RECT texture instead of 2D texture. We should propogate that info to the fragment shader's TEX instruction. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
@@ -871,6 +871,7 @@ st_create_fp_variant(struct st_context *st,
|
||||
variant->bitmap_sampler = ffs(~stfp->Base.Base.SamplersUsed) - 1;
|
||||
|
||||
tokens = st_get_bitmap_shader(tgsi.tokens,
|
||||
st->internal_target,
|
||||
variant->bitmap_sampler,
|
||||
st->needs_texcoord_semantic,
|
||||
st->bitmap.tex_format ==
|
||||
|
Reference in New Issue
Block a user