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
ae2e5d65
Commit
ae2e5d65
authored
Jan 17, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the WINED3DQUERYTYPE typedef.
parent
e53a2773
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
39 deletions
+39
-39
query.c
dlls/wined3d/query.c
+19
-19
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
wined3d.h
include/wine/wined3d.h
+19
-19
No files found.
dlls/wined3d/query.c
View file @
ae2e5d65
...
...
@@ -251,12 +251,12 @@ ULONG CDECL wined3d_query_decref(struct wined3d_query *query)
* deleting the query will obviously leak it, but that's still better
* than potentially deleting a different query with the same id in this
* context, and (still) leaking the actual query. */
if
(
query
->
type
==
WINED3D
QUERY
TYPE_EVENT
)
if
(
query
->
type
==
WINED3D
_QUERY_
TYPE_EVENT
)
{
struct
wined3d_event_query
*
event_query
=
query
->
extendedData
;
if
(
event_query
)
wined3d_event_query_destroy
(
event_query
);
}
else
if
(
query
->
type
==
WINED3D
QUERY
TYPE_OCCLUSION
)
else
if
(
query
->
type
==
WINED3D
_QUERY_
TYPE_OCCLUSION
)
{
struct
wined3d_occlusion_query
*
oq
=
query
->
extendedData
;
...
...
@@ -412,7 +412,7 @@ static HRESULT wined3d_event_query_ops_get_data(struct wined3d_query *query,
return
S_OK
;
}
WINED3DQUERYTYPE
CDECL
wined3d_query_get_type
(
const
struct
wined3d_query
*
query
)
enum
wined3d_query_type
CDECL
wined3d_query_get_type
(
const
struct
wined3d_query
*
query
)
{
TRACE
(
"query %p.
\n
"
,
query
);
...
...
@@ -547,13 +547,13 @@ static const struct wined3d_query_ops occlusion_query_ops =
wined3d_occlusion_query_ops_issue
,
};
static
HRESULT
query_init
(
struct
wined3d_query
*
query
,
struct
wined3d_device
*
device
,
WINED3DQUERYTYPE
type
)
static
HRESULT
query_init
(
struct
wined3d_query
*
query
,
struct
wined3d_device
*
device
,
enum
wined3d_query_type
type
)
{
const
struct
wined3d_gl_info
*
gl_info
=
&
device
->
adapter
->
gl_info
;
switch
(
type
)
{
case
WINED3D
QUERY
TYPE_OCCLUSION
:
case
WINED3D
_QUERY_
TYPE_OCCLUSION
:
TRACE
(
"Occlusion query.
\n
"
);
if
(
!
gl_info
->
supported
[
ARB_OCCLUSION_QUERY
])
{
...
...
@@ -571,7 +571,7 @@ static HRESULT query_init(struct wined3d_query *query, struct wined3d_device *de
((
struct
wined3d_occlusion_query
*
)
query
->
extendedData
)
->
context
=
NULL
;
break
;
case
WINED3D
QUERY
TYPE_EVENT
:
case
WINED3D
_QUERY_
TYPE_EVENT
:
TRACE
(
"Event query.
\n
"
);
if
(
!
wined3d_event_query_supported
(
gl_info
))
{
...
...
@@ -591,18 +591,18 @@ static HRESULT query_init(struct wined3d_query *query, struct wined3d_device *de
}
break
;
case
WINED3D
QUERY
TYPE_VCACHE
:
case
WINED3D
QUERYTYPE_RESOURCE
MANAGER
:
case
WINED3D
QUERYTYPE_VERTEX
STATS
:
case
WINED3D
QUERY
TYPE_TIMESTAMP
:
case
WINED3D
QUERYTYPE_TIMESTAMP
DISJOINT
:
case
WINED3D
QUERYTYPE_TIMESTAMP
FREQ
:
case
WINED3D
QUERYTYPE_PIPELINE
TIMINGS
:
case
WINED3D
QUERYTYPE_INTERFACE
TIMINGS
:
case
WINED3D
QUERYTYPE_VERTEX
TIMINGS
:
case
WINED3D
QUERYTYPE_PIXEL
TIMINGS
:
case
WINED3D
QUERYTYPE_BANDWIDTH
TIMINGS
:
case
WINED3D
QUERYTYPE_CACHE
UTILIZATION
:
case
WINED3D
_QUERY_
TYPE_VCACHE
:
case
WINED3D
_QUERY_TYPE_RESOURCE_
MANAGER
:
case
WINED3D
_QUERY_TYPE_VERTEX_
STATS
:
case
WINED3D
_QUERY_
TYPE_TIMESTAMP
:
case
WINED3D
_QUERY_TYPE_TIMESTAMP_
DISJOINT
:
case
WINED3D
_QUERY_TYPE_TIMESTAMP_
FREQ
:
case
WINED3D
_QUERY_TYPE_PIPELINE_
TIMINGS
:
case
WINED3D
_QUERY_TYPE_INTERFACE_
TIMINGS
:
case
WINED3D
_QUERY_TYPE_VERTEX_
TIMINGS
:
case
WINED3D
_QUERY_TYPE_PIXEL_
TIMINGS
:
case
WINED3D
_QUERY_TYPE_BANDWIDTH_
TIMINGS
:
case
WINED3D
_QUERY_TYPE_CACHE_
UTILIZATION
:
default:
FIXME
(
"Unhandled query type %#x.
\n
"
,
type
);
return
WINED3DERR_NOTAVAILABLE
;
...
...
@@ -617,7 +617,7 @@ static HRESULT query_init(struct wined3d_query *query, struct wined3d_device *de
}
HRESULT
CDECL
wined3d_query_create
(
struct
wined3d_device
*
device
,
WINED3DQUERYTYPE
type
,
struct
wined3d_query
**
query
)
enum
wined3d_query_type
type
,
struct
wined3d_query
**
query
)
{
struct
wined3d_query
*
object
;
HRESULT
hr
;
...
...
dlls/wined3d/wined3d_private.h
View file @
ae2e5d65
...
...
@@ -2365,7 +2365,7 @@ struct wined3d_query
const
struct
wined3d_query_ops
*
query_ops
;
struct
wined3d_device
*
device
;
enum
query_state
state
;
WINED3DQUERYTYPE
type
;
enum
wined3d_query_type
type
;
DWORD
data_size
;
void
*
extendedData
;
};
...
...
include/wine/wined3d.h
View file @
ae2e5d65
...
...
@@ -688,23 +688,23 @@ enum wined3d_pool
WINED3D_POOL_SCRATCH
=
3
,
};
typedef
enum
_WINED3DQUERYTYPE
{
WINED3D
QUERYTYPE_VCACHE
=
4
,
WINED3D
QUERYTYPE_RESOURCEMANAGER
=
5
,
WINED3D
QUERYTYPE_VERTEXSTATS
=
6
,
WINED3D
QUERYTYPE_EVENT
=
8
,
WINED3D
QUERYTYPE_OCCLUSION
=
9
,
WINED3D
QUERYTYPE_TIMESTAMP
=
10
,
WINED3D
QUERYTYPE_TIMESTAMPDISJOINT
=
11
,
WINED3D
QUERYTYPE_TIMESTAMPFREQ
=
12
,
WINED3D
QUERYTYPE_PIPELINETIMINGS
=
13
,
WINED3D
QUERYTYPE_INTERFACETIMINGS
=
14
,
WINED3D
QUERYTYPE_VERTEXTIMINGS
=
15
,
WINED3D
QUERYTYPE_PIXELTIMINGS
=
16
,
WINED3D
QUERYTYPE_BANDWIDTHTIMINGS
=
17
,
WINED3D
QUERYTYPE_CACHEUTILIZATION
=
18
}
WINED3DQUERYTYPE
;
enum
wined3d_query_type
{
WINED3D
_QUERY_TYPE_VCACHE
=
4
,
WINED3D
_QUERY_TYPE_RESOURCE_MANAGER
=
5
,
WINED3D
_QUERY_TYPE_VERTEX_STATS
=
6
,
WINED3D
_QUERY_TYPE_EVENT
=
8
,
WINED3D
_QUERY_TYPE_OCCLUSION
=
9
,
WINED3D
_QUERY_TYPE_TIMESTAMP
=
10
,
WINED3D
_QUERY_TYPE_TIMESTAMP_DISJOINT
=
11
,
WINED3D
_QUERY_TYPE_TIMESTAMP_FREQ
=
12
,
WINED3D
_QUERY_TYPE_PIPELINE_TIMINGS
=
13
,
WINED3D
_QUERY_TYPE_INTERFACE_TIMINGS
=
14
,
WINED3D
_QUERY_TYPE_VERTEX_TIMINGS
=
15
,
WINED3D
_QUERY_TYPE_PIXEL_TIMINGS
=
16
,
WINED3D
_QUERY_TYPE_BANDWIDTH_TIMINGS
=
17
,
WINED3D
_QUERY_TYPE_CACHE_UTILIZATION
=
18
};
#define WINED3DISSUE_BEGIN (1 << 1)
#define WINED3DISSUE_END (1 << 0)
...
...
@@ -2248,11 +2248,11 @@ HRESULT __cdecl wined3d_palette_set_entries(struct wined3d_palette *palette,
DWORD
flags
,
DWORD
start
,
DWORD
count
,
const
PALETTEENTRY
*
entries
);
HRESULT
__cdecl
wined3d_query_create
(
struct
wined3d_device
*
device
,
WINED3DQUERYTYPE
type
,
struct
wined3d_query
**
query
);
enum
wined3d_query_type
type
,
struct
wined3d_query
**
query
);
ULONG
__cdecl
wined3d_query_decref
(
struct
wined3d_query
*
query
);
HRESULT
__cdecl
wined3d_query_get_data
(
struct
wined3d_query
*
query
,
void
*
data
,
UINT
data_size
,
DWORD
flags
);
UINT
__cdecl
wined3d_query_get_data_size
(
const
struct
wined3d_query
*
query
);
WINED3DQUERYTYPE
__cdecl
wined3d_query_get_type
(
const
struct
wined3d_query
*
query
);
enum
wined3d_query_type
__cdecl
wined3d_query_get_type
(
const
struct
wined3d_query
*
query
);
ULONG
__cdecl
wined3d_query_incref
(
struct
wined3d_query
*
query
);
HRESULT
__cdecl
wined3d_query_issue
(
struct
wined3d_query
*
query
,
DWORD
flags
);
...
...
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