[PATCH 5/6] wined3d: Enable SM5 shaders in the GLSL backend.
Matteo Bruni
mbruni at codeweavers.com
Tue Feb 16 13:48:07 CST 2016
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
dlls/wined3d/glsl_shader.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
index 1e31bde..771e57d 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -7972,9 +7972,12 @@ static void shader_glsl_get_caps(const struct wined3d_gl_info *gl_info, struct s
{
UINT shader_model;
+ /* FIXME: Check for the extensions required for SM5 support
+ * (ARB_compute_shader, ARB_tessellation_shader, ARB_gpu_shader5, ...) as
+ * soon as we introduce them. */
if (gl_info->glsl_version >= MAKEDWORD_VERSION(1, 50) && gl_info->supported[WINED3D_GL_VERSION_3_2]
&& gl_info->supported[ARB_SHADER_BIT_ENCODING] && gl_info->supported[ARB_SAMPLER_OBJECTS])
- shader_model = 4;
+ shader_model = 5;
/* ARB_shader_texture_lod or EXT_gpu_shader4 is required for the SM3
* texldd and texldl instructions. */
else if (gl_info->supported[ARB_SHADER_TEXTURE_LOD] || gl_info->supported[EXT_GPU_SHADER4])
--
2.4.10
More information about the wine-patches
mailing list