mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
wined3d: Add ARB_gpu_shader5 extension.
For SM5 bitwise instructions. Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
375d40e97b
commit
8ef73e88c1
3 changed files with 7 additions and 0 deletions
|
@ -130,6 +130,7 @@ static const struct wined3d_extension_map gl_extension_map[] =
|
|||
{"GL_ARB_framebuffer_object", ARB_FRAMEBUFFER_OBJECT },
|
||||
{"GL_ARB_framebuffer_sRGB", ARB_FRAMEBUFFER_SRGB },
|
||||
{"GL_ARB_geometry_shader4", ARB_GEOMETRY_SHADER4 },
|
||||
{"GL_ARB_gpu_shader5", ARB_GPU_SHADER5 },
|
||||
{"GL_ARB_half_float_pixel", ARB_HALF_FLOAT_PIXEL },
|
||||
{"GL_ARB_half_float_vertex", ARB_HALF_FLOAT_VERTEX },
|
||||
{"GL_ARB_instanced_arrays", ARB_INSTANCED_ARRAYS },
|
||||
|
@ -3651,6 +3652,8 @@ static BOOL wined3d_adapter_init_gl_caps(struct wined3d_adapter *adapter, DWORD
|
|||
{ARB_TIMER_QUERY, MAKEDWORD_VERSION(3, 3)},
|
||||
{ARB_VERTEX_TYPE_2_10_10_10_REV, MAKEDWORD_VERSION(3, 3)},
|
||||
|
||||
{ARB_GPU_SHADER5, MAKEDWORD_VERSION(4, 0)},
|
||||
|
||||
{ARB_ES2_COMPATIBILITY, MAKEDWORD_VERSION(4, 1)},
|
||||
{ARB_VIEWPORT_ARRAY, MAKEDWORD_VERSION(4, 1)},
|
||||
|
||||
|
|
|
@ -6150,6 +6150,8 @@ static void shader_glsl_generate_alpha_test(struct wined3d_string_buffer *buffer
|
|||
static void shader_glsl_enable_extensions(struct wined3d_string_buffer *buffer,
|
||||
const struct wined3d_gl_info *gl_info)
|
||||
{
|
||||
if (gl_info->supported[ARB_GPU_SHADER5])
|
||||
shader_addline(buffer, "#extension GL_ARB_gpu_shader5 : enable\n");
|
||||
if (gl_info->supported[ARB_SHADER_BIT_ENCODING])
|
||||
shader_addline(buffer, "#extension GL_ARB_shader_bit_encoding : enable\n");
|
||||
if (gl_info->supported[ARB_SHADER_IMAGE_LOAD_STORE])
|
||||
|
@ -8755,6 +8757,7 @@ static void shader_glsl_get_caps(const struct wined3d_gl_info *gl_info, struct s
|
|||
* accordingly. */
|
||||
if (gl_info->glsl_version >= MAKEDWORD_VERSION(4, 30) && gl_info->supported[WINED3D_GL_VERSION_4_3]
|
||||
&& gl_info->supported[ARB_DERIVATIVE_CONTROL]
|
||||
&& gl_info->supported[ARB_GPU_SHADER5]
|
||||
&& gl_info->supported[ARB_SHADER_IMAGE_LOAD_STORE]
|
||||
&& gl_info->supported[ARB_SHADER_IMAGE_SIZE]
|
||||
&& gl_info->supported[ARB_SHADING_LANGUAGE_PACKING])
|
||||
|
|
|
@ -63,6 +63,7 @@ enum wined3d_gl_extension
|
|||
ARB_FRAMEBUFFER_OBJECT,
|
||||
ARB_FRAMEBUFFER_SRGB,
|
||||
ARB_GEOMETRY_SHADER4,
|
||||
ARB_GPU_SHADER5,
|
||||
ARB_HALF_FLOAT_PIXEL,
|
||||
ARB_HALF_FLOAT_VERTEX,
|
||||
ARB_INSTANCED_ARRAYS,
|
||||
|
|
Loading…
Reference in a new issue