Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a0b79ba3
Commit
a0b79ba3
authored
Apr 17, 2024
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 23, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass a shader_glsl_priv structure to shader_glsl_generate_compute_shader().
parent
a1494dee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
glsl_shader.c
dlls/wined3d/glsl_shader.c
+4
-3
No files found.
dlls/wined3d/glsl_shader.c
View file @
a0b79ba3
...
...
@@ -8496,12 +8496,13 @@ static void shader_glsl_generate_shader_epilogue(const struct wined3d_shader_con
/* Context activation is done by the caller. */
static
GLuint
shader_glsl_generate_compute_shader
(
const
struct
wined3d_context_gl
*
context_gl
,
struct
wined3d_string_buffer
*
buffer
,
struct
wined3d_string_buffer_list
*
string_buffers
,
const
struct
wined3d_shader
*
shader
)
struct
shader_glsl_priv
*
priv
,
const
struct
wined3d_shader
*
shader
)
{
const
struct
wined3d_shader_thread_group_size
*
thread_group_size
=
&
shader
->
u
.
cs
.
thread_group_size
;
struct
wined3d_string_buffer_list
*
string_buffers
=
&
priv
->
string_buffers
;
const
struct
wined3d_shader_reg_maps
*
reg_maps
=
&
shader
->
reg_maps
;
const
struct
wined3d_gl_info
*
gl_info
=
context_gl
->
gl_info
;
struct
wined3d_string_buffer
*
buffer
=
&
priv
->
shader_buffer
;
struct
shader_glsl_ctx_priv
priv_ctx
;
GLuint
shader_id
;
unsigned
int
i
;
...
...
@@ -10177,7 +10178,7 @@ static HRESULT shader_glsl_compile_compute_shader(struct shader_glsl_priv *priv,
TRACE
(
"Compiling compute shader %p.
\n
"
,
shader
);
string_buffer_clear
(
buffer
);
shader_id
=
shader_glsl_generate_compute_shader
(
context_gl
,
buffer
,
&
priv
->
string_buffers
,
shader
);
shader_id
=
shader_glsl_generate_compute_shader
(
context_gl
,
priv
,
shader
);
gl_shaders
[
shader_data
->
num_gl_shaders
++
].
id
=
shader_id
;
program_id
=
GL_EXTCALL
(
glCreateProgram
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment