frontend/nine: Fix missing clamping of pointsize for ff

Seen while working on this code.
It seems to be a sane thing to do.

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22583>
This commit is contained in:
Axel Davy 2022-07-21 18:42:02 +02:00 committed by Marge Bot
parent 7edae7baa6
commit 02ce3abd8a

View file

@ -1956,7 +1956,9 @@ nine_ff_load_point_and_fog_params(struct NineDevice9 *device)
return;
dst[26].x = asfloat(context->rs[D3DRS_POINTSIZE_MIN]);
dst[26].y = asfloat(context->rs[D3DRS_POINTSIZE_MAX]);
dst[26].z = asfloat(context->rs[D3DRS_POINTSIZE]);
dst[26].z = CLAMP(asfloat(context->rs[D3DRS_POINTSIZE]),
asfloat(context->rs[D3DRS_POINTSIZE_MIN]),
asfloat(context->rs[D3DRS_POINTSIZE_MAX]));
dst[26].w = asfloat(context->rs[D3DRS_POINTSCALE_A]);
dst[27].x = asfloat(context->rs[D3DRS_POINTSCALE_B]);
dst[27].y = asfloat(context->rs[D3DRS_POINTSCALE_C]);