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
27bac24a
Commit
27bac24a
authored
Jan 06, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Re-add the fixed function stream source trace.
parent
d5f18e6a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
33 deletions
+39
-33
drawprim.c
dlls/wined3d/drawprim.c
+0
-33
state.c
dlls/wined3d/state.c
+39
-0
No files found.
dlls/wined3d/drawprim.c
View file @
27bac24a
...
...
@@ -1141,39 +1141,6 @@ inline static void drawPrimitiveDrawStrided(
This
->
shader_backend
->
shader_cleanup
(
usePixelShaderFunction
,
useVertexShaderFunction
);
}
inline
void
drawPrimitiveTraceDataLocations
(
WineDirect3DVertexStridedData
*
dataLocations
)
{
/* Dump out what parts we have supplied */
TRACE
(
"Strided Data:
\n
"
);
TRACE_STRIDED
((
dataLocations
),
position
);
TRACE_STRIDED
((
dataLocations
),
blendWeights
);
TRACE_STRIDED
((
dataLocations
),
blendMatrixIndices
);
TRACE_STRIDED
((
dataLocations
),
normal
);
TRACE_STRIDED
((
dataLocations
),
pSize
);
TRACE_STRIDED
((
dataLocations
),
diffuse
);
TRACE_STRIDED
((
dataLocations
),
specular
);
TRACE_STRIDED
((
dataLocations
),
texCoords
[
0
]);
TRACE_STRIDED
((
dataLocations
),
texCoords
[
1
]);
TRACE_STRIDED
((
dataLocations
),
texCoords
[
2
]);
TRACE_STRIDED
((
dataLocations
),
texCoords
[
3
]);
TRACE_STRIDED
((
dataLocations
),
texCoords
[
4
]);
TRACE_STRIDED
((
dataLocations
),
texCoords
[
5
]);
TRACE_STRIDED
((
dataLocations
),
texCoords
[
6
]);
TRACE_STRIDED
((
dataLocations
),
texCoords
[
7
]);
TRACE_STRIDED
((
dataLocations
),
position2
);
TRACE_STRIDED
((
dataLocations
),
normal2
);
TRACE_STRIDED
((
dataLocations
),
tangent
);
TRACE_STRIDED
((
dataLocations
),
binormal
);
TRACE_STRIDED
((
dataLocations
),
tessFactor
);
TRACE_STRIDED
((
dataLocations
),
fog
);
TRACE_STRIDED
((
dataLocations
),
depth
);
TRACE_STRIDED
((
dataLocations
),
sample
);
return
;
}
static
void
check_fbo_status
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
...
...
dlls/wined3d/state.c
View file @
27bac24a
...
...
@@ -2440,6 +2440,38 @@ static void loadVertexData(IWineD3DStateBlockImpl *stateblock, WineDirect3DVerte
}
}
inline
void
drawPrimitiveTraceDataLocations
(
WineDirect3DVertexStridedData
*
dataLocations
)
{
/* Dump out what parts we have supplied */
TRACE
(
"Strided Data:
\n
"
);
TRACE_STRIDED
((
dataLocations
),
position
);
TRACE_STRIDED
((
dataLocations
),
blendWeights
);
TRACE_STRIDED
((
dataLocations
),
blendMatrixIndices
);
TRACE_STRIDED
((
dataLocations
),
normal
);
TRACE_STRIDED
((
dataLocations
),
pSize
);
TRACE_STRIDED
((
dataLocations
),
diffuse
);
TRACE_STRIDED
((
dataLocations
),
specular
);
TRACE_STRIDED
((
dataLocations
),
texCoords
[
0
]);
TRACE_STRIDED
((
dataLocations
),
texCoords
[
1
]);
TRACE_STRIDED
((
dataLocations
),
texCoords
[
2
]);
TRACE_STRIDED
((
dataLocations
),
texCoords
[
3
]);
TRACE_STRIDED
((
dataLocations
),
texCoords
[
4
]);
TRACE_STRIDED
((
dataLocations
),
texCoords
[
5
]);
TRACE_STRIDED
((
dataLocations
),
texCoords
[
6
]);
TRACE_STRIDED
((
dataLocations
),
texCoords
[
7
]);
TRACE_STRIDED
((
dataLocations
),
position2
);
TRACE_STRIDED
((
dataLocations
),
normal2
);
TRACE_STRIDED
((
dataLocations
),
tangent
);
TRACE_STRIDED
((
dataLocations
),
binormal
);
TRACE_STRIDED
((
dataLocations
),
tessFactor
);
TRACE_STRIDED
((
dataLocations
),
fog
);
TRACE_STRIDED
((
dataLocations
),
depth
);
TRACE_STRIDED
((
dataLocations
),
sample
);
return
;
}
/* Helper for vertexdeclaration() */
static
inline
void
handleStreams
(
IWineD3DStateBlockImpl
*
stateblock
,
BOOL
useVertexShaderFunction
)
{
IWineD3DDeviceImpl
*
device
=
stateblock
->
wineD3DDevice
;
...
...
@@ -2450,6 +2482,10 @@ static inline void handleStreams(IWineD3DStateBlockImpl *stateblock, BOOL useVer
/* Note: this is a ddraw fixed-function code path */
TRACE
(
"================ Strided Input ===================
\n
"
);
memcpy
(
dataLocations
,
device
->
up_strided
,
sizeof
(
*
dataLocations
));
if
(
TRACE_ON
(
d3d
))
{
drawPrimitiveTraceDataLocations
(
dataLocations
);
}
}
else
if
(
stateblock
->
vertexDecl
||
stateblock
->
vertexShader
)
{
/* Note: This is a fixed function or shader codepath.
* This means it must handle both types of strided data.
...
...
@@ -2474,6 +2510,9 @@ static inline void handleStreams(IWineD3DStateBlockImpl *stateblock, BOOL useVer
memset
(
dataLocations
,
0
,
sizeof
(
*
dataLocations
));
primitiveConvertToStridedData
((
IWineD3DDevice
*
)
device
,
dataLocations
,
&
fixup
);
if
(
TRACE_ON
(
d3d
))
{
drawPrimitiveTraceDataLocations
(
dataLocations
);
}
}
/* Unload the old arrays before loading the new ones to get old junk out */
...
...
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