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
9d4960bf
Commit
9d4960bf
authored
May 09, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
May 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Clean up some dead code.
parent
b187242a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
26 deletions
+18
-26
pixelshader.c
dlls/wined3d/pixelshader.c
+10
-17
vertexshader.c
dlls/wined3d/vertexshader.c
+8
-9
No files found.
dlls/wined3d/pixelshader.c
View file @
9d4960bf
...
...
@@ -1169,12 +1169,8 @@ inline static VOID IWineD3DPixelShaderImpl_GenerateProgramArbHW(IWineD3DPixelSha
IWineD3DPixelShaderImpl
*
This
=
(
IWineD3DPixelShaderImpl
*
)
iface
;
const
DWORD
*
pToken
=
pFunction
;
const
SHADER_OPCODE
*
curOpcode
=
NULL
;
const
DWORD
*
pInstr
;
DWORD
i
;
char
tmpLine
[
255
];
#if 0 /* TODO: loop register (just another address register ) */
BOOL hasLoops = FALSE;
#endif
SHADER_BUFFER
buffer
;
int
row
=
0
;
/* not sure, something to do with macros? */
...
...
@@ -1261,21 +1257,23 @@ inline static VOID IWineD3DPixelShaderImpl_GenerateProgramArbHW(IWineD3DPixelSha
pToken
+=
comment_len
;
continue
;
}
#if 0 /* Not sure what these are here for, they're not required for vshaders */
code = *pToken;
#endif
pInstr
=
pToken
;
/* Read opcode */
curOpcode
=
shader_get_opcode
((
IWineD3DBaseShader
*
)
This
,
*
pToken
);
++
pToken
;
/* Unknown opcode and its parameters */
if
(
NULL
==
curOpcode
)
{
/* unknown current opcode ... (shouldn't be any!) */
while
(
*
pToken
&
0x80000000
)
{
/* TODO: Think of a sensible name for 0x80000000 */
FIXME
(
"unrecognized opcode: %08lx
\n
"
,
*
pToken
);
++
pToken
;
}
/* Unhandled opcode */
}
else
if
(
GLNAME_REQUIRE_GLSL
==
curOpcode
->
glname
)
{
/* if the token isn't supported by this cross compiler then skip it and its parameters */
FIXME
(
"Token %s requires greater functionality than Fragment_Progarm_ARB supports
\n
"
,
curOpcode
->
name
);
FIXME
(
"Token %s requires greater functionality than "
"Fragment_Progarm_ARB supports
\n
"
,
curOpcode
->
name
);
pToken
+=
curOpcode
->
num_params
;
}
else
if
(
D3DSIO_DEF
==
curOpcode
->
opcode
)
{
...
...
@@ -1420,13 +1418,8 @@ inline static VOID IWineD3DPixelShaderImpl_GenerateProgramArbHW(IWineD3DPixelSha
break
;
default:
if
(
curOpcode
->
glname
==
GLNAME_REQUIRE_GLSL
)
{
FIXME
(
"Opcode %s requires Gl Shader languange 1.0
\n
"
,
curOpcode
->
name
);
}
else
{
FIXME
(
"Can't handle opcode %s in hwShader
\n
"
,
curOpcode
->
name
);
}
FIXME
(
"Can't handle opcode %s in hwShader
\n
"
,
curOpcode
->
name
);
pToken
+=
curOpcode
->
num_params
;
continue
;
}
}
}
...
...
dlls/wined3d/vertexshader.c
View file @
9d4960bf
...
...
@@ -1190,18 +1190,22 @@ inline static VOID IWineD3DVertexShaderImpl_GenerateProgramArbHW(IWineD3DVertexS
continue
;
}
/* Read opcode */
curOpcode
=
shader_get_opcode
((
IWineD3DBaseShader
*
)
This
,
*
pToken
);
++
pToken
;
/* Unknown opcode and its parameters */
if
(
NULL
==
curOpcode
)
{
/* unknown current opcode ... (shouldn't be any!) */
while
(
*
pToken
&
0x80000000
)
{
FIXME
(
"unrecognized opcode: %08lx
\n
"
,
*
pToken
);
++
pToken
;
}
/* Unhandled opcode */
}
else
if
(
GLNAME_REQUIRE_GLSL
==
curOpcode
->
glname
)
{
/* if the token isn't supported by this cross compiler then skip it and its parameters */
FIXME
(
"Token %s requires greater functionality than Vertex_Progarm_ARB supports
\n
"
,
curOpcode
->
name
);
FIXME
(
"Token %s requires greater functionality than "
"Vertex_Program_ARB supports
\n
"
,
curOpcode
->
name
);
pToken
+=
curOpcode
->
num_params
;
}
else
if
(
D3DSIO_DEF
==
curOpcode
->
opcode
)
{
...
...
@@ -1336,12 +1340,7 @@ inline static VOID IWineD3DVertexShaderImpl_GenerateProgramArbHW(IWineD3DVertexS
break
;
default:
if
(
curOpcode
->
glname
==
GLNAME_REQUIRE_GLSL
)
{
FIXME
(
"Opcode %s requires Gl Shader languange 1.0
\n
"
,
curOpcode
->
name
);
}
else
{
FIXME
(
"Can't handle opcode %s in hwShader
\n
"
,
curOpcode
->
name
);
}
FIXME
(
"Can't handle opcode %s in hwShader
\n
"
,
curOpcode
->
name
);
pToken
+=
curOpcode
->
num_params
;
}
}
...
...
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