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
89245248
Commit
89245248
authored
May 03, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
May 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Handle the ps_3_0 vPos field.
parent
5d009230
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
baseshader.c
dlls/wined3d/baseshader.c
+8
-0
glsl_shader.c
dlls/wined3d/glsl_shader.c
+12
-0
No files found.
dlls/wined3d/baseshader.c
View file @
89245248
...
...
@@ -519,6 +519,7 @@ void shader_dump_param(
IWineD3DBaseShaderImpl
*
This
=
(
IWineD3DBaseShaderImpl
*
)
iface
;
static
const
char
*
const
rastout_reg_names
[]
=
{
"oPos"
,
"oFog"
,
"oPts"
};
static
const
char
*
const
misctype_reg_names
[]
=
{
"vPos"
,
"vFace"
};
char
swizzle_reg_chars
[
4
];
DWORD
reg
=
param
&
WINED3DSP_REGNUM_MASK
;
...
...
@@ -611,6 +612,13 @@ void shader_dump_param(
case
WINED3DSPR_SAMPLER
:
TRACE
(
"s%u"
,
reg
);
break
;
case
WINED3DSPR_MISCTYPE
:
if
(
reg
>
1
)
{
FIXME
(
"Unhandled misctype register %d
\n
"
,
reg
);
}
else
{
TRACE
(
"%s"
,
misctype_reg_names
[
reg
]);
}
break
;
case
WINED3DSPR_PREDICATE
:
TRACE
(
"p%u"
,
reg
);
break
;
...
...
dlls/wined3d/glsl_shader.c
View file @
89245248
...
...
@@ -690,6 +690,18 @@ static void shader_glsl_get_register_name(
else
sprintf
(
tmpStr
,
"gl_TexCoord[%u]"
,
reg
);
break
;
case
WINED3DSPR_MISCTYPE
:
if
(
reg
==
0
)
{
/* vPos */
sprintf
(
tmpStr
,
"gl_FragCoord"
);
}
else
{
/* gl_FrontFacing could be used for vFace, but note that
* gl_FrontFacing is a bool, while vFace is a float for
* which the sign determines front/back */
FIXME
(
"Unhandled misctype register %d
\n
"
,
reg
);
sprintf
(
tmpStr
,
"unrecognized_register"
);
}
break
;
default:
FIXME
(
"Unhandled register name Type(%d)
\n
"
,
regtype
);
sprintf
(
tmpStr
,
"unrecognized_register"
);
...
...
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