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
a3c2fb9e
Commit
a3c2fb9e
authored
Dec 20, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Store if half float conversion is needed in the decl.
parent
30c1abb1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
drawprim.c
dlls/wined3d/drawprim.c
+2
-2
state.c
dlls/wined3d/state.c
+1
-1
vertexdeclaration.c
dlls/wined3d/vertexdeclaration.c
+5
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/drawprim.c
View file @
a3c2fb9e
...
...
@@ -201,7 +201,7 @@ void primitiveDeclarationConvertToStridedData(
if
((
UINT_PTR
)
data
<
-
This
->
stateBlock
->
loadBaseVertexIndex
*
stride
)
{
FIXME
(
"System memory vertex data load offset is negative!
\n
"
);
}
}
else
if
(
vertexDeclaration
->
half_float_
used
&&
!
GL_SUPPORT
(
NV_HALF_FLOAT
)
)
{
}
else
if
(
vertexDeclaration
->
half_float_
conv_needed
)
{
WARN
(
"Half float vertex data used, but GL_NV_half_float is not supported. Not using vbos
\n
"
);
streamVBO
=
0
;
data
=
((
IWineD3DVertexBufferImpl
*
)
This
->
stateBlock
->
streamSource
[
element
->
Stream
])
->
resource
.
allocatedMemory
;
...
...
@@ -1127,7 +1127,7 @@ void drawPrimitive(IWineD3DDevice *iface,
/* Instancing emulation with mixing immediate mode and arrays */
drawStridedInstanced
(
iface
,
&
This
->
strided_streams
,
calculatedNumberOfindices
,
glPrimType
,
idxData
,
idxSize
,
minIndex
,
StartIdx
,
StartVertexIndex
);
}
else
if
(
GL_SUPPORT
(
NV_HALF_FLOAT
)
||
(
!
((
IWineD3DVertexDeclarationImpl
*
)
This
->
stateBlock
->
vertexDecl
)
->
half_float_used
)
)
{
}
else
if
(
!
((
IWineD3DVertexDeclarationImpl
*
)
This
->
stateBlock
->
vertexDecl
)
->
half_float_conv_needed
)
{
drawStridedFast
(
iface
,
calculatedNumberOfindices
,
glPrimType
,
idxData
,
idxSize
,
minIndex
,
StartIdx
,
StartVertexIndex
);
}
else
{
...
...
dlls/wined3d/state.c
View file @
a3c2fb9e
...
...
@@ -2884,7 +2884,7 @@ static inline void loadNumberedArrays(IWineD3DStateBlockImpl *stateblock, WineDi
/* Default to no instancing */
stateblock
->
wineD3DDevice
->
instancedDraw
=
FALSE
;
if
(((
IWineD3DVertexDeclarationImpl
*
)
stateblock
->
vertexDecl
)
->
half_float_
used
&&
!
GL_SUPPORT
(
NV_HALF_FLOAT
)
)
{
if
(((
IWineD3DVertexDeclarationImpl
*
)
stateblock
->
vertexDecl
)
->
half_float_
conv_needed
)
{
/* This will be handled using drawStridedSlow */
return
;
}
...
...
dlls/wined3d/vertexdeclaration.c
View file @
a3c2fb9e
...
...
@@ -26,6 +26,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d_decl
);
#define GLINFO_LOCATION This->wineD3DDevice->adapter->gl_info
static
void
dump_wined3dvertexelement
(
const
WINED3DVERTEXELEMENT
*
element
)
{
TRACE
(
" Stream: %d
\n
"
,
element
->
Stream
);
TRACE
(
" Offset: %d
\n
"
,
element
->
Offset
);
...
...
@@ -185,7 +187,9 @@ static HRESULT WINAPI IWineD3DVertexDeclarationImpl_SetDeclaration(IWineD3DVerte
This
->
num_swizzled_attribs
++
;
}
else
if
(
This
->
pDeclarationWine
[
i
].
Type
==
WINED3DDECLTYPE_FLOAT16_2
||
This
->
pDeclarationWine
[
i
].
Type
==
WINED3DDECLTYPE_FLOAT16_4
)
{
This
->
half_float_used
=
TRUE
;
if
(
!
GL_SUPPORT
(
NV_HALF_FLOAT
))
{
This
->
half_float_conv_needed
=
TRUE
;
}
}
}
...
...
dlls/wined3d/wined3d_private.h
View file @
a3c2fb9e
...
...
@@ -1268,7 +1268,7 @@ typedef struct IWineD3DVertexDeclarationImpl {
DWORD
streams
[
MAX_STREAMS
];
UINT
num_streams
;
BOOL
position_transformed
;
BOOL
half_float_
us
ed
;
BOOL
half_float_
conv_need
ed
;
/* Ordered array of declaration types that need swizzling in a vshader */
attrib_declaration
swizzled_attribs
[
MAX_ATTRIBS
];
...
...
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