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
07680133
Commit
07680133
authored
Dec 22, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move struct wined3d_query_vk to wined3d_vk.h.
parent
972a782f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
61 deletions
+62
-61
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-61
wined3d_vk.h
dlls/wined3d/wined3d_vk.h
+60
-0
No files found.
dlls/wined3d/wined3d_private.h
View file @
07680133
...
...
@@ -2096,67 +2096,6 @@ struct wined3d_pipeline_statistics_query
#define WINED3D_QUERY_POOL_SIZE 256
#include "wined3d_vk.h"
struct
wined3d_query_pool_vk
{
struct
list
entry
;
struct
list
completed_entry
;
struct
list
*
free_list
;
VkQueryPool
vk_query_pool
;
VkEvent
vk_event
;
uint32_t
allocated
[
WINED3D_BITMAP_SIZE
(
WINED3D_QUERY_POOL_SIZE
)];
uint32_t
completed
[
WINED3D_BITMAP_SIZE
(
WINED3D_QUERY_POOL_SIZE
)];
};
bool
wined3d_query_pool_vk_allocate_query
(
struct
wined3d_query_pool_vk
*
pool_vk
,
size_t
*
idx
)
DECLSPEC_HIDDEN
;
void
wined3d_query_pool_vk_mark_free
(
struct
wined3d_context_vk
*
context_vk
,
struct
wined3d_query_pool_vk
*
pool_vk
,
uint32_t
start
,
uint32_t
count
)
DECLSPEC_HIDDEN
;
void
wined3d_query_pool_vk_cleanup
(
struct
wined3d_query_pool_vk
*
pool_vk
,
struct
wined3d_context_vk
*
context_vk
)
DECLSPEC_HIDDEN
;
bool
wined3d_query_pool_vk_init
(
struct
wined3d_query_pool_vk
*
pool_vk
,
struct
wined3d_context_vk
*
context_vk
,
enum
wined3d_query_type
type
,
struct
list
*
free_pools
)
DECLSPEC_HIDDEN
;
struct
wined3d_query_pool_idx_vk
{
struct
wined3d_query_pool_vk
*
pool_vk
;
size_t
idx
;
};
#define WINED3D_QUERY_VK_FLAG_ACTIVE 0x00000001
#define WINED3D_QUERY_VK_FLAG_STARTED 0x00000002
#define WINED3D_QUERY_VK_FLAG_RENDER_PASS 0x00000004
struct
wined3d_query_vk
{
struct
wined3d_query
q
;
struct
list
entry
;
struct
wined3d_query_pool_idx_vk
pool_idx
;
uint8_t
flags
;
uint64_t
command_buffer_id
;
uint32_t
control_flags
;
VkEvent
vk_event
;
SIZE_T
pending_count
,
pending_size
;
struct
wined3d_query_pool_idx_vk
*
pending
;
};
static
inline
struct
wined3d_query_vk
*
wined3d_query_vk
(
struct
wined3d_query
*
query
)
{
return
CONTAINING_RECORD
(
query
,
struct
wined3d_query_vk
,
q
);
}
struct
wined3d_device_vk
;
bool
wined3d_query_vk_accumulate_data
(
struct
wined3d_query_vk
*
query_vk
,
struct
wined3d_device_vk
*
device_vk
,
const
struct
wined3d_query_pool_idx_vk
*
pool_idx
)
DECLSPEC_HIDDEN
;
HRESULT
wined3d_query_vk_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_vk_resume
(
struct
wined3d_query_vk
*
query_vk
,
struct
wined3d_context_vk
*
context_vk
)
DECLSPEC_HIDDEN
;
void
wined3d_query_vk_suspend
(
struct
wined3d_query_vk
*
query_vk
,
struct
wined3d_context_vk
*
context_vk
)
DECLSPEC_HIDDEN
;
struct
wined3d_gl_view
{
GLenum
target
;
...
...
@@ -2446,6 +2385,8 @@ void wined3d_context_gl_update_stream_sources(struct wined3d_context_gl *context
const
struct
wined3d_state
*
state
)
DECLSPEC_HIDDEN
;
void
wined3d_context_gl_wait_command_fence
(
struct
wined3d_context_gl
*
context_gl
,
uint64_t
id
)
DECLSPEC_HIDDEN
;
#include "wined3d_vk.h"
struct
wined3d_command_buffer_vk
{
uint64_t
id
;
...
...
dlls/wined3d/wined3d_vk.h
View file @
07680133
...
...
@@ -20,10 +20,13 @@
#define __WINE_WINED3D_VK_H
#include "stdint.h"
#include "wine/list.h"
#include "wine/wined3d.h"
#define VK_NO_PROTOTYPES
#include "wine/vulkan.h"
struct
wined3d_device_vk
;
#define VK_INSTANCE_FUNCS() \
VK_INSTANCE_PFN(vkCreateDevice) \
VK_INSTANCE_PFN(vkDestroyInstance) \
...
...
@@ -302,4 +305,61 @@ struct wined3d_image_vk
uint64_t
command_buffer_id
;
};
struct
wined3d_query_pool_vk
{
struct
list
entry
;
struct
list
completed_entry
;
struct
list
*
free_list
;
VkQueryPool
vk_query_pool
;
VkEvent
vk_event
;
uint32_t
allocated
[
WINED3D_BITMAP_SIZE
(
WINED3D_QUERY_POOL_SIZE
)];
uint32_t
completed
[
WINED3D_BITMAP_SIZE
(
WINED3D_QUERY_POOL_SIZE
)];
};
bool
wined3d_query_pool_vk_allocate_query
(
struct
wined3d_query_pool_vk
*
pool_vk
,
size_t
*
idx
)
DECLSPEC_HIDDEN
;
void
wined3d_query_pool_vk_mark_free
(
struct
wined3d_context_vk
*
context_vk
,
struct
wined3d_query_pool_vk
*
pool_vk
,
uint32_t
start
,
uint32_t
count
)
DECLSPEC_HIDDEN
;
void
wined3d_query_pool_vk_cleanup
(
struct
wined3d_query_pool_vk
*
pool_vk
,
struct
wined3d_context_vk
*
context_vk
)
DECLSPEC_HIDDEN
;
bool
wined3d_query_pool_vk_init
(
struct
wined3d_query_pool_vk
*
pool_vk
,
struct
wined3d_context_vk
*
context_vk
,
enum
wined3d_query_type
type
,
struct
list
*
free_pools
)
DECLSPEC_HIDDEN
;
struct
wined3d_query_pool_idx_vk
{
struct
wined3d_query_pool_vk
*
pool_vk
;
size_t
idx
;
};
#define WINED3D_QUERY_VK_FLAG_ACTIVE 0x00000001
#define WINED3D_QUERY_VK_FLAG_STARTED 0x00000002
#define WINED3D_QUERY_VK_FLAG_RENDER_PASS 0x00000004
struct
wined3d_query_vk
{
struct
wined3d_query
q
;
struct
list
entry
;
struct
wined3d_query_pool_idx_vk
pool_idx
;
uint8_t
flags
;
uint64_t
command_buffer_id
;
uint32_t
control_flags
;
VkEvent
vk_event
;
SIZE_T
pending_count
,
pending_size
;
struct
wined3d_query_pool_idx_vk
*
pending
;
};
static
inline
struct
wined3d_query_vk
*
wined3d_query_vk
(
struct
wined3d_query
*
query
)
{
return
CONTAINING_RECORD
(
query
,
struct
wined3d_query_vk
,
q
);
}
bool
wined3d_query_vk_accumulate_data
(
struct
wined3d_query_vk
*
query_vk
,
struct
wined3d_device_vk
*
device_vk
,
const
struct
wined3d_query_pool_idx_vk
*
pool_idx
)
DECLSPEC_HIDDEN
;
HRESULT
wined3d_query_vk_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_vk_resume
(
struct
wined3d_query_vk
*
query_vk
,
struct
wined3d_context_vk
*
context_vk
)
DECLSPEC_HIDDEN
;
void
wined3d_query_vk_suspend
(
struct
wined3d_query_vk
*
query_vk
,
struct
wined3d_context_vk
*
context_vk
)
DECLSPEC_HIDDEN
;
#endif
/* __WINE_WINED3D_VK */
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