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
e1bf1cd6
Commit
e1bf1cd6
authored
Mar 28, 2008
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Mar 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make the filtering capability of a format a flag in the formats table.
parent
5423c35d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
12 deletions
+14
-12
directx.c
dlls/wined3d/directx.c
+13
-12
utils.c
dlls/wined3d/utils.c
+0
-0
wined3d_private_types.h
dlls/wined3d/wined3d_private_types.h
+1
-0
No files found.
dlls/wined3d/directx.c
View file @
e1bf1cd6
...
...
@@ -1923,19 +1923,20 @@ WINED3DFORMAT DepthStencilFormat)
return
FALSE
;
}
static
BOOL
CheckFilterCapability
(
WINED3DFORMAT
CheckFormat
)
static
BOOL
CheckFilterCapability
(
UINT
Adapter
,
WINED3DFORMAT
CheckFormat
)
{
switch
(
CheckFormat
)
{
/* Filtering not supported */
case
WINED3DFMT_R32F
:
case
WINED3DFMT_A32B32G32R32F
:
TRACE_
(
d3d_caps
)(
"[FAILED]
\n
"
);
const
GlPixelFormatDesc
*
glDesc
;
const
StaticPixelFormatDesc
*
desc
=
getFormatDescEntry
(
CheckFormat
,
&
GLINFO_LOCATION
,
&
glDesc
);
/* Fail if we weren't able to get a description of the format */
if
(
!
desc
||
!
glDesc
)
return
FALSE
;
default
:
break
;
}
/* The flags entry of a format contains the filtering capability */
if
(
glDesc
->
Flags
&
WINED3DFMT_FLAG_FILTERING
)
return
TRUE
;
return
FALSE
;
}
/* Check the render target capabilities of a format */
...
...
@@ -2351,7 +2352,7 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt
/* Check QUERY_FILTER support */
if
(
Usage
&
WINED3DUSAGE_QUERY_FILTER
)
{
if
(
CheckFilterCapability
(
CheckFormat
))
{
if
(
CheckFilterCapability
(
Adapter
,
CheckFormat
))
{
UsageCaps
|=
WINED3DUSAGE_QUERY_FILTER
;
}
else
{
TRACE_
(
d3d_caps
)(
"[FAILED] - No query filter support
\n
"
);
...
...
@@ -2473,7 +2474,7 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt
/* Check QUERY_FILTER support */
if
(
Usage
&
WINED3DUSAGE_QUERY_FILTER
)
{
if
(
CheckFilterCapability
(
CheckFormat
))
{
if
(
CheckFilterCapability
(
Adapter
,
CheckFormat
))
{
UsageCaps
|=
WINED3DUSAGE_QUERY_FILTER
;
}
else
{
TRACE_
(
d3d_caps
)(
"[FAILED] - No query filter support
\n
"
);
...
...
@@ -2564,7 +2565,7 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt
/* Check QUERY_FILTER support */
if
(
Usage
&
WINED3DUSAGE_QUERY_FILTER
)
{
if
(
CheckFilterCapability
(
CheckFormat
))
{
if
(
CheckFilterCapability
(
Adapter
,
CheckFormat
))
{
UsageCaps
|=
WINED3DUSAGE_QUERY_FILTER
;
}
else
{
TRACE_
(
d3d_caps
)(
"[FAILED] - No query filter support
\n
"
);
...
...
dlls/wined3d/utils.c
View file @
e1bf1cd6
This diff is collapsed.
Click to expand it.
dlls/wined3d/wined3d_private_types.h
View file @
e1bf1cd6
...
...
@@ -32,6 +32,7 @@ typedef enum {
/* WineD3D pixel format flags */
#define WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING 0x1
#define WINED3DFMT_FLAG_FILTERING 0x2
/** DCL usage masks **/
#define WINED3DSP_DCL_USAGE_SHIFT 0
...
...
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