frontend/nine: Fix programmable vs check

Checking if context->vs is set is not
equivalent to checking programmable vs

Cc: mesa-stable
Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28232>
(cherry picked from commit d3cec6cdf1)
This commit is contained in:
Axel Davy 2023-04-29 09:54:15 +02:00 committed by Eric Engestrom
parent e1c686778a
commit 64b0629062
2 changed files with 2 additions and 2 deletions

View file

@ -244,7 +244,7 @@
"description": "frontend/nine: Fix programmable vs check",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -86,7 +86,7 @@ nine_ff_get_projected_key(struct nine_context *context, unsigned num_stages)
unsigned idx = context->ff.tex_stage[s][D3DTSS_TEXCOORDINDEX] & 7;
unsigned proj = !!(context->ff.tex_stage[s][D3DTSS_TEXTURETRANSFORMFLAGS] & D3DTTFF_PROJECTED);
if (!context->vs) {
if (!context->programmable_vs) {
if (dim > 4)
dim = input_texture_coord[idx];