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
9e89444b
Commit
9e89444b
authored
May 08, 2022
by
Chip Davis
Committed by
Alexandre Julliard
May 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move WINED3DFMT_FLAG_EXTENSION to the attributes group.
Signed-off-by:
Chip Davis
<
cdavis5x@gmail.com
>
parent
9bdbf0e4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
directx.c
dlls/wined3d/directx.c
+2
-2
utils.c
dlls/wined3d/utils.c
+5
-5
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/directx.c
View file @
9e89444b
...
@@ -1901,8 +1901,8 @@ static BOOL wined3d_check_surface_format(const struct wined3d_format *format)
...
@@ -1901,8 +1901,8 @@ static BOOL wined3d_check_surface_format(const struct wined3d_format *format)
if
((
format
->
flags
[
WINED3D_GL_RES_TYPE_TEX_2D
]
|
format
->
flags
[
WINED3D_GL_RES_TYPE_RB
])
&
WINED3DFMT_FLAG_BLIT
)
if
((
format
->
flags
[
WINED3D_GL_RES_TYPE_TEX_2D
]
|
format
->
flags
[
WINED3D_GL_RES_TYPE_RB
])
&
WINED3DFMT_FLAG_BLIT
)
return
TRUE
;
return
TRUE
;
if
((
format
->
flags
[
WINED3D_GL_RES_TYPE_TEX_2D
]
&
(
WINED3DFMT_FLAG_EXTENSION
|
WINED3DFMT_FLAG_TEXTURE
)
)
if
((
format
->
attrs
&
WINED3D_FORMAT_ATTR_EXTENSION
)
==
(
WINED3DFMT_FLAG_EXTENSION
|
WINED3DFMT_FLAG_TEXTURE
))
&&
(
format
->
flags
[
WINED3D_GL_RES_TYPE_TEX_2D
]
&
WINED3DFMT_FLAG_TEXTURE
))
return
TRUE
;
return
TRUE
;
return
FALSE
;
return
FALSE
;
...
...
dlls/wined3d/utils.c
View file @
9e89444b
...
@@ -323,11 +323,11 @@ static const struct wined3d_format_base_flags format_base_flags[] =
...
@@ -323,11 +323,11 @@ static const struct wined3d_format_base_flags format_base_flags[] =
{
WINED3DFMT_D32_FLOAT
,
WINED3D_FORMAT_ATTR_FLOAT
},
{
WINED3DFMT_D32_FLOAT
,
WINED3D_FORMAT_ATTR_FLOAT
},
{
WINED3DFMT_S8_UINT_D24_FLOAT
,
WINED3D_FORMAT_ATTR_FLOAT
},
{
WINED3DFMT_S8_UINT_D24_FLOAT
,
WINED3D_FORMAT_ATTR_FLOAT
},
{
WINED3DFMT_D32_FLOAT_S8X24_UINT
,
WINED3D_FORMAT_ATTR_FLOAT
},
{
WINED3DFMT_D32_FLOAT_S8X24_UINT
,
WINED3D_FORMAT_ATTR_FLOAT
},
{
WINED3DFMT_INST
,
0
,
WINED3DFMT_FLAG
_EXTENSION
},
{
WINED3DFMT_INST
,
WINED3D_FORMAT_ATTR
_EXTENSION
},
{
WINED3DFMT_NULL
,
0
,
WINED3DFMT_FLAG
_EXTENSION
},
{
WINED3DFMT_NULL
,
WINED3D_FORMAT_ATTR
_EXTENSION
},
{
WINED3DFMT_NVDB
,
0
,
WINED3DFMT_FLAG
_EXTENSION
},
{
WINED3DFMT_NVDB
,
WINED3D_FORMAT_ATTR
_EXTENSION
},
{
WINED3DFMT_ATOC
,
0
,
WINED3DFMT_FLAG
_EXTENSION
},
{
WINED3DFMT_ATOC
,
WINED3D_FORMAT_ATTR
_EXTENSION
},
{
WINED3DFMT_RESZ
,
0
,
WINED3DFMT_FLAG
_EXTENSION
},
{
WINED3DFMT_RESZ
,
WINED3D_FORMAT_ATTR
_EXTENSION
},
{
WINED3DFMT_R32G32B32A32_TYPELESS
,
0
,
WINED3DFMT_FLAG_CAST_TO_BLOCK
},
{
WINED3DFMT_R32G32B32A32_TYPELESS
,
0
,
WINED3DFMT_FLAG_CAST_TO_BLOCK
},
{
WINED3DFMT_R32G32B32A32_FLOAT
,
0
,
WINED3DFMT_FLAG_CAST_TO_BLOCK
},
{
WINED3DFMT_R32G32B32A32_FLOAT
,
0
,
WINED3DFMT_FLAG_CAST_TO_BLOCK
},
{
WINED3DFMT_R32G32B32A32_UINT
,
0
,
WINED3DFMT_FLAG_CAST_TO_BLOCK
},
{
WINED3DFMT_R32G32B32A32_UINT
,
0
,
WINED3DFMT_FLAG_CAST_TO_BLOCK
},
...
...
dlls/wined3d/wined3d_private.h
View file @
9e89444b
...
@@ -6112,6 +6112,7 @@ extern enum wined3d_format_id pixelformat_for_depth(DWORD depth) DECLSPEC_HIDDEN
...
@@ -6112,6 +6112,7 @@ extern enum wined3d_format_id pixelformat_for_depth(DWORD depth) DECLSPEC_HIDDEN
#define WINED3D_FORMAT_ATTR_INTEGER 0x00000002
#define WINED3D_FORMAT_ATTR_INTEGER 0x00000002
#define WINED3D_FORMAT_ATTR_NORMALISED 0x00000004
#define WINED3D_FORMAT_ATTR_NORMALISED 0x00000004
#define WINED3D_FORMAT_ATTR_BUMPMAP 0x00000008
#define WINED3D_FORMAT_ATTR_BUMPMAP 0x00000008
#define WINED3D_FORMAT_ATTR_EXTENSION 0x00000010
/* WineD3D pixel format flags */
/* WineD3D pixel format flags */
#define WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING 0x00000001
#define WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING 0x00000001
...
@@ -6119,7 +6120,6 @@ extern enum wined3d_format_id pixelformat_for_depth(DWORD depth) DECLSPEC_HIDDEN
...
@@ -6119,7 +6120,6 @@ extern enum wined3d_format_id pixelformat_for_depth(DWORD depth) DECLSPEC_HIDDEN
#define WINED3DFMT_FLAG_UNORDERED_ACCESS 0x00000004
#define WINED3DFMT_FLAG_UNORDERED_ACCESS 0x00000004
#define WINED3DFMT_FLAG_DEPTH_STENCIL 0x00000008
#define WINED3DFMT_FLAG_DEPTH_STENCIL 0x00000008
#define WINED3DFMT_FLAG_RENDERTARGET 0x00000010
#define WINED3DFMT_FLAG_RENDERTARGET 0x00000010
#define WINED3DFMT_FLAG_EXTENSION 0x00000020
#define WINED3DFMT_FLAG_FBO_ATTACHABLE 0x00000040
#define WINED3DFMT_FLAG_FBO_ATTACHABLE 0x00000040
#define WINED3DFMT_FLAG_FBO_ATTACHABLE_SRGB 0x00000080
#define WINED3DFMT_FLAG_FBO_ATTACHABLE_SRGB 0x00000080
#define WINED3DFMT_FLAG_DECOMPRESS 0x00000100
#define WINED3DFMT_FLAG_DECOMPRESS 0x00000100
...
...
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