Commit 1ccfab17 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Use SM3 shader limits for SM4.

This isn't completely right, since as far as I'm aware SM4 doesn't have shader limits in the same sense as previous shader models, but this should do for now.
parent fcee1b70
...@@ -178,6 +178,10 @@ static void pshader_set_limits(IWineD3DPixelShaderImpl *This) ...@@ -178,6 +178,10 @@ static void pshader_set_limits(IWineD3DPixelShaderImpl *This)
This->baseShader.limits.label = 16; This->baseShader.limits.label = 16;
break; break;
case WINED3D_SHADER_VERSION(4,0):
FIXME("Using 3.0 limits for 4.0 shader\n");
/* Fall through */
case WINED3D_SHADER_VERSION(3,0): case WINED3D_SHADER_VERSION(3,0):
This->baseShader.limits.temporary = 32; This->baseShader.limits.temporary = 32;
This->baseShader.limits.constant_float = 224; This->baseShader.limits.constant_float = 224;
......
...@@ -71,6 +71,10 @@ static void vshader_set_limits(IWineD3DVertexShaderImpl *This) ...@@ -71,6 +71,10 @@ static void vshader_set_limits(IWineD3DVertexShaderImpl *This)
This->baseShader.limits.constant_float = min(256, GL_LIMITS(vshader_constantsF)); This->baseShader.limits.constant_float = min(256, GL_LIMITS(vshader_constantsF));
break; break;
case WINED3D_SHADER_VERSION(4,0):
FIXME("Using 3.0 limits for 4.0 shader\n");
/* Fall through */
case WINED3D_SHADER_VERSION(3,0): case WINED3D_SHADER_VERSION(3,0):
This->baseShader.limits.temporary = 32; This->baseShader.limits.temporary = 32;
This->baseShader.limits.constant_bool = 32; This->baseShader.limits.constant_bool = 32;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment