Skip to content
Snippets Groups Projects
Commit 5f5c562f authored by Mike Blumenkrantz's avatar Mike Blumenkrantz :lifter: Committed by Dylan Baker
Browse files

mesa/st: set normalized coords for RECT samplers if rects are unsupported


the shaders will never see these, so set the expected value for 2D

cc: mesa-stable

Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
Part-of: <mesa/mesa!15895>
(cherry picked from commit 2058ae7b)
parent 653b5604
No related branches found
No related tags found
No related merge requests found
......@@ -1804,7 +1804,7 @@
"description": "mesa/st: set normalized coords for RECT samplers if rects are unsupported",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},
......
......@@ -72,7 +72,7 @@ st_convert_sampler(const struct st_context *st,
sampler->mag_img_filter = PIPE_TEX_FILTER_NEAREST;
}
if (texobj->Target != GL_TEXTURE_RECTANGLE_ARB)
if (texobj->Target != GL_TEXTURE_RECTANGLE_ARB || st->lower_rect_tex)
sampler->normalized_coords = 1;
sampler->lod_bias += tex_unit_lod_bias;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment