Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6c3595fb
Commit
6c3595fb
authored
Oct 16, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Handle WINED3DSPR_PRIMID in the GLSL shader backend.
parent
003622c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
glsl_shader.c
dlls/wined3d/glsl_shader.c
+5
-1
No files found.
dlls/wined3d/glsl_shader.c
View file @
6c3595fb
...
...
@@ -1562,6 +1562,10 @@ static void shader_glsl_get_register_name(const struct wined3d_shader_register *
}
break
;
case
WINED3DSPR_PRIMID
:
sprintf
(
register_name
,
"uint(gl_PrimitiveIDIn)"
);
break
;
default:
FIXME
(
"Unhandled register type %#x.
\n
"
,
reg
->
type
);
sprintf
(
register_name
,
"unrecognized_register"
);
...
...
@@ -1649,7 +1653,7 @@ static void shader_glsl_add_src_param(const struct wined3d_shader_instruction *i
shader_glsl_get_register_name
(
&
wined3d_src
->
reg
,
glsl_src
->
reg_name
,
&
is_color
,
ins
);
shader_glsl_get_swizzle
(
wined3d_src
,
is_color
,
mask
,
swizzle_str
);
if
(
wined3d_src
->
reg
.
type
==
WINED3DSPR_IMMCONST
)
if
(
wined3d_src
->
reg
.
type
==
WINED3DSPR_IMMCONST
||
wined3d_src
->
reg
.
type
==
WINED3DSPR_PRIMID
)
{
shader_glsl_gen_modifier
(
wined3d_src
->
modifiers
,
glsl_src
->
reg_name
,
swizzle_str
,
glsl_src
->
param_str
);
}
...
...
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