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
ca954a05
Commit
ca954a05
authored
Jan 06, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move struct wined3d_query_gl to wined3d_gl.h.
parent
0f1679f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
88 additions
and
88 deletions
+88
-88
wined3d_gl.h
dlls/wined3d/wined3d_gl.h
+85
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+3
-88
No files found.
dlls/wined3d/wined3d_gl.h
View file @
ca954a05
...
...
@@ -465,4 +465,89 @@ enum wined3d_fence_result wined3d_fence_wait(const struct wined3d_fence *fence,
enum
wined3d_fence_result
wined3d_fence_test
(
const
struct
wined3d_fence
*
fence
,
struct
wined3d_device
*
device
,
uint32_t
flags
);
HRESULT
wined3d_query_gl_create
(
struct
wined3d_device
*
device
,
enum
wined3d_query_type
type
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
,
struct
wined3d_query
**
query
);
void
wined3d_query_gl_destroy_buffer_object
(
struct
wined3d_context_gl
*
context_gl
,
struct
wined3d_query
*
query
);
struct
wined3d_event_query
{
struct
wined3d_query
query
;
struct
wined3d_fence
fence
;
BOOL
signalled
;
};
struct
wined3d_occlusion_query
{
struct
wined3d_query
query
;
struct
list
entry
;
GLuint
id
;
struct
wined3d_context_gl
*
context_gl
;
uint64_t
samples
;
BOOL
started
;
};
struct
wined3d_timestamp_query
{
struct
wined3d_query
query
;
struct
list
entry
;
GLuint
id
;
struct
wined3d_context_gl
*
context_gl
;
uint64_t
timestamp
;
};
union
wined3d_gl_so_statistics_query
{
GLuint
id
[
2
];
struct
{
GLuint
written
;
GLuint
generated
;
}
query
;
};
struct
wined3d_so_statistics_query
{
struct
wined3d_query
query
;
struct
list
entry
;
union
wined3d_gl_so_statistics_query
u
;
struct
wined3d_context_gl
*
context_gl
;
unsigned
int
stream_idx
;
struct
wined3d_query_data_so_statistics
statistics
;
BOOL
started
;
};
union
wined3d_gl_pipeline_statistics_query
{
GLuint
id
[
11
];
struct
{
GLuint
vertices
;
GLuint
primitives
;
GLuint
vertex_shader
;
GLuint
tess_control_shader
;
GLuint
tess_eval_shader
;
GLuint
geometry_shader
;
GLuint
geometry_primitives
;
GLuint
fragment_shader
;
GLuint
compute_shader
;
GLuint
clipping_input
;
GLuint
clipping_output
;
}
query
;
};
struct
wined3d_pipeline_statistics_query
{
struct
wined3d_query
query
;
struct
list
entry
;
union
wined3d_gl_pipeline_statistics_query
u
;
struct
wined3d_context_gl
*
context_gl
;
struct
wined3d_query_data_pipeline_statistics
statistics
;
BOOL
started
;
};
#endif
/* __WINE_WINED3D_GL */
dlls/wined3d/wined3d_private.h
View file @
ca954a05
...
...
@@ -1843,8 +1843,6 @@ enum fogsource {
FOGSOURCE_COORD
,
};
#include "wined3d_gl.h"
/* Direct3D terminology with little modifications. We do not have an issued
* state because only the driver knows about it, but we have a created state
* because D3D allows GetData() on a created query, but OpenGL doesn't. */
...
...
@@ -1878,96 +1876,13 @@ struct wined3d_query
LONG
counter_main
,
counter_retrieved
;
struct
list
poll_list_entry
;
GLuint
buffer_object
;
/* FIXME: This is GL-specific. */
unsigned
int
buffer_object
;
UINT64
*
map_ptr
;
bool
poll_in_cs
;
};
HRESULT
wined3d_query_gl_create
(
struct
wined3d_device
*
device
,
enum
wined3d_query_type
type
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
,
struct
wined3d_query
**
query
)
DECLSPEC_HIDDEN
;
void
wined3d_query_gl_destroy_buffer_object
(
struct
wined3d_context_gl
*
context_gl
,
struct
wined3d_query
*
query
)
DECLSPEC_HIDDEN
;
struct
wined3d_event_query
{
struct
wined3d_query
query
;
struct
wined3d_fence
fence
;
BOOL
signalled
;
};
struct
wined3d_occlusion_query
{
struct
wined3d_query
query
;
struct
list
entry
;
GLuint
id
;
struct
wined3d_context_gl
*
context_gl
;
UINT64
samples
;
BOOL
started
;
};
struct
wined3d_timestamp_query
{
struct
wined3d_query
query
;
struct
list
entry
;
GLuint
id
;
struct
wined3d_context_gl
*
context_gl
;
UINT64
timestamp
;
};
union
wined3d_gl_so_statistics_query
{
GLuint
id
[
2
];
struct
{
GLuint
written
;
GLuint
generated
;
}
query
;
};
struct
wined3d_so_statistics_query
{
struct
wined3d_query
query
;
struct
list
entry
;
union
wined3d_gl_so_statistics_query
u
;
struct
wined3d_context_gl
*
context_gl
;
unsigned
int
stream_idx
;
struct
wined3d_query_data_so_statistics
statistics
;
BOOL
started
;
};
union
wined3d_gl_pipeline_statistics_query
{
GLuint
id
[
11
];
struct
{
GLuint
vertices
;
GLuint
primitives
;
GLuint
vertex_shader
;
GLuint
tess_control_shader
;
GLuint
tess_eval_shader
;
GLuint
geometry_shader
;
GLuint
geometry_primitives
;
GLuint
fragment_shader
;
GLuint
compute_shader
;
GLuint
clipping_input
;
GLuint
clipping_output
;
}
query
;
};
struct
wined3d_pipeline_statistics_query
{
struct
wined3d_query
query
;
struct
list
entry
;
union
wined3d_gl_pipeline_statistics_query
u
;
struct
wined3d_context_gl
*
context_gl
;
struct
wined3d_query_data_pipeline_statistics
statistics
;
BOOL
started
;
};
#include "wined3d_gl.h"
#define WINED3D_QUERY_POOL_SIZE 256
...
...
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