[PATCH 3/5] wined3d: Fix ps_3_0 packed inputs limit.
Matteo Bruni
mbruni at codeweavers.com
Mon Sep 26 17:04:13 CDT 2016
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
There are really only 10 varyings available to a ps_3_0 shader (2 color
+ 8 texcoord). The two additional VS outputs are reserved for position
and per-vertex point size and don't become PS inputs.
dlls/wined3d/shader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/shader.c b/dlls/wined3d/shader.c
index 28d5972..1c48589 100644
--- a/dlls/wined3d/shader.c
+++ b/dlls/wined3d/shader.c
@@ -598,7 +598,7 @@ static void shader_set_limits(struct wined3d_shader *shader)
{WINED3D_SHADER_VERSION(1, 4), WINED3D_SHADER_VERSION(1, 4), { 6, 0, 8, 0, 0, 0}},
{WINED3D_SHADER_VERSION(2, 0), WINED3D_SHADER_VERSION(2, 0), {16, 0, 32, 0, 0, 0}},
{WINED3D_SHADER_VERSION(2, 1), WINED3D_SHADER_VERSION(2, 1), {16, 16, 32, 16, 0, 0}},
- {WINED3D_SHADER_VERSION(3, 0), WINED3D_SHADER_VERSION(3, 0), {16, 16, 224, 16, 0, 12}},
+ {WINED3D_SHADER_VERSION(3, 0), WINED3D_SHADER_VERSION(3, 0), {16, 16, 224, 16, 0, 10}},
{WINED3D_SHADER_VERSION(4, 0), WINED3D_SHADER_VERSION(5, 0), {16, 0, 0, 0, 0, 32}},
{0}
},
--
2.7.3
More information about the wine-patches
mailing list