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
34245154
Commit
34245154
authored
Jan 06, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move more miscellaneous GL declarations to wined3d_gl.h.
parent
dcdba8d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
24 deletions
+25
-24
wined3d_gl.h
dlls/wined3d/wined3d_gl.h
+25
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-24
No files found.
dlls/wined3d/wined3d_gl.h
View file @
34245154
...
...
@@ -366,6 +366,31 @@ GLenum wined3d_buffer_gl_binding_from_bind_flags(const struct wined3d_gl_info *g
void
wined3d_check_gl_call
(
const
struct
wined3d_gl_info
*
gl_info
,
const
char
*
file
,
unsigned
int
line
,
const
char
*
name
);
struct
min_lookup
{
GLenum
mip
[
WINED3D_TEXF_LINEAR
+
1
];
};
extern
const
struct
min_lookup
minMipLookup
[
WINED3D_TEXF_LINEAR
+
1
];
extern
const
GLenum
magLookup
[
WINED3D_TEXF_LINEAR
+
1
];
static
inline
GLenum
wined3d_gl_mag_filter
(
enum
wined3d_texture_filter_type
mag_filter
)
{
return
magLookup
[
mag_filter
];
}
static
inline
GLenum
wined3d_gl_min_mip_filter
(
enum
wined3d_texture_filter_type
min_filter
,
enum
wined3d_texture_filter_type
mip_filter
)
{
return
minMipLookup
[
min_filter
].
mip
[
mip_filter
];
}
GLenum
wined3d_gl_compare_func
(
enum
wined3d_cmp_func
f
);
const
char
*
debug_fboattachment
(
GLenum
attachment
);
const
char
*
debug_fbostatus
(
GLenum
status
);
const
char
*
debug_glerror
(
GLenum
error
);
static
inline
bool
wined3d_fence_supported
(
const
struct
wined3d_gl_info
*
gl_info
)
{
return
gl_info
->
supported
[
ARB_SYNC
]
||
gl_info
->
supported
[
NV_FENCE
]
||
gl_info
->
supported
[
APPLE_FENCE
];
...
...
dlls/wined3d/wined3d_private.h
View file @
34245154
...
...
@@ -297,19 +297,9 @@ static inline enum complex_fixup get_complex_fixup(struct color_fixup_desc fixup
#define MAX_TGSM_REGISTERS 8192
#define MAX_VERTEX_BLENDS 4
struct
min_lookup
{
GLenum
mip
[
WINED3D_TEXF_LINEAR
+
1
];
};
extern
const
struct
min_lookup
minMipLookup
[
WINED3D_TEXF_LINEAR
+
1
]
DECLSPEC_HIDDEN
;
extern
const
GLenum
magLookup
[
WINED3D_TEXF_LINEAR
+
1
]
DECLSPEC_HIDDEN
;
static
const
uint32_t
WINED3D_READ_ONLY_BIND_MASK
=
WINED3D_BIND_VERTEX_BUFFER
|
WINED3D_BIND_INDEX_BUFFER
|
WINED3D_BIND_CONSTANT_BUFFER
|
WINED3D_BIND_SHADER_RESOURCE
|
WINED3D_BIND_INDIRECT_BUFFER
;
GLenum
wined3d_gl_compare_func
(
enum
wined3d_cmp_func
f
)
DECLSPEC_HIDDEN
;
static
inline
enum
wined3d_cmp_func
wined3d_sanitize_cmp_func
(
enum
wined3d_cmp_func
func
)
{
if
(
func
<
WINED3D_CMP_NEVER
||
func
>
WINED3D_CMP_ALWAYS
)
...
...
@@ -317,17 +307,6 @@ static inline enum wined3d_cmp_func wined3d_sanitize_cmp_func(enum wined3d_cmp_f
return
func
;
}
static
inline
GLenum
wined3d_gl_mag_filter
(
enum
wined3d_texture_filter_type
mag_filter
)
{
return
magLookup
[
mag_filter
];
}
static
inline
GLenum
wined3d_gl_min_mip_filter
(
enum
wined3d_texture_filter_type
min_filter
,
enum
wined3d_texture_filter_type
mip_filter
)
{
return
minMipLookup
[
min_filter
].
mip
[
mip_filter
];
}
/* float_16_to_32() and float_32_to_16() convert 16 bit floats in the
* FLOAT16 data type to standard C floats and vice versa. They do not
* depend on the encoding of the C float, so they are platform independent,
...
...
@@ -4856,9 +4835,6 @@ const char *debug_d3dtexturefiltertype(enum wined3d_texture_filter_type filter_t
const
char
*
debug_d3dtexturestate
(
enum
wined3d_texture_stage_state
state
)
DECLSPEC_HIDDEN
;
const
char
*
debug_d3dtop
(
enum
wined3d_texture_op
d3dtop
)
DECLSPEC_HIDDEN
;
const
char
*
debug_d3dtstype
(
enum
wined3d_transform_state
tstype
)
DECLSPEC_HIDDEN
;
const
char
*
debug_fboattachment
(
GLenum
attachment
)
DECLSPEC_HIDDEN
;
const
char
*
debug_fbostatus
(
GLenum
status
)
DECLSPEC_HIDDEN
;
const
char
*
debug_glerror
(
GLenum
error
)
DECLSPEC_HIDDEN
;
const
char
*
debug_ivec4
(
const
struct
wined3d_ivec4
*
v
)
DECLSPEC_HIDDEN
;
const
char
*
debug_uvec4
(
const
struct
wined3d_uvec4
*
v
)
DECLSPEC_HIDDEN
;
const
char
*
debug_shader_type
(
enum
wined3d_shader_type
shader_type
)
DECLSPEC_HIDDEN
;
...
...
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