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
ec495563
Commit
ec495563
authored
Aug 25, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Silence some format spam.
parent
acc893c5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
2 deletions
+24
-2
ddraw.c
dlls/ddraw/ddraw.c
+2
-1
directx.c
dlls/wined3d/directx.c
+14
-0
utils.c
dlls/wined3d/utils.c
+6
-1
wined3d_types.h
include/wine/wined3d_types.h
+2
-0
No files found.
dlls/ddraw/ddraw.c
View file @
ec495563
...
...
@@ -880,8 +880,9 @@ IDirectDrawImpl_GetFourCCCodes(IDirectDraw7 *iface,
{
ICOM_THIS_FROM
(
IDirectDrawImpl
,
IDirectDraw7
,
iface
);
WINED3DFORMAT
formats
[]
=
{
WINED3DFMT_YUY2
,
WINED3DFMT_UYVY
,
WINED3DFMT_YUY2
,
WINED3DFMT_UYVY
,
WINED3DFMT_YV12
,
WINED3DFMT_DXT1
,
WINED3DFMT_DXT2
,
WINED3DFMT_DXT3
,
WINED3DFMT_DXT4
,
WINED3DFMT_DXT5
,
WINED3DFMT_ATI2N
,
WINED3DFMT_NVHU
,
WINED3DFMT_NVHS
};
DWORD
count
=
0
,
i
,
outsize
;
HRESULT
hr
;
...
...
dlls/wined3d/directx.c
View file @
ec495563
...
...
@@ -2323,6 +2323,9 @@ static BOOL CheckTextureCapability(UINT Adapter, WINED3DDEVTYPE DeviceType, WINE
}
TRACE_
(
d3d_caps
)(
"[FAILED]
\n
"
);
return
FALSE
;
case
WINED3DFMT_YV12
:
TRACE_
(
d3d_caps
)(
"[FAILED]
\n
"
);
return
FALSE
;
/* Not supported */
case
WINED3DFMT_A16B16G16R16
:
...
...
@@ -2397,6 +2400,17 @@ static BOOL CheckTextureCapability(UINT Adapter, WINED3DDEVTYPE DeviceType, WINE
TRACE_
(
d3d_caps
)(
"[FAILED]
\n
"
);
return
FALSE
;
case
WINED3DFMT_NVHU
:
case
WINED3DFMT_NVHS
:
/* These formats seem to be similar to the HILO formats in GL_NV_texture_shader. NVHU
* is said to be GL_UNSIGNED_HILO16, NVHS GL_SIGNED_HILO16. Rumours say that d3d computes
* a 3rd channel similarly to D3DFMT_CxV8U8(So NVHS could be called D3DFMT_CxV16U16).
* ATI refused to support formats which can easilly be emulated with pixel shaders, so
* Applications have to deal with not having NVHS and NVHU.
*/
TRACE_
(
d3d_caps
)(
"[FAILED]
\n
"
);
return
FALSE
;
case
WINED3DFMT_UNKNOWN
:
return
FALSE
;
...
...
dlls/wined3d/utils.c
View file @
ec495563
...
...
@@ -44,7 +44,7 @@ static const StaticPixelFormatDesc formats[] = {
/* FourCC formats, kept here to have WINED3DFMT_R8G8B8(=20) at position 20 */
{
WINED3DFMT_UYVY
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
0
,
0
,
TRUE
},
{
WINED3DFMT_YUY2
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
0
,
0
,
TRUE
},
{
WINED3DFMT_YV12
,
0x0
,
0x0
,
0x0
,
0x0
,
1
/*?*/
,
0
,
0
,
TRUE
},
{
WINED3DFMT_YV12
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
0
,
0
,
TRUE
},
{
WINED3DFMT_DXT1
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
0
,
0
,
TRUE
},
{
WINED3DFMT_DXT2
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
0
,
0
,
TRUE
},
{
WINED3DFMT_DXT3
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
0
,
0
,
TRUE
},
...
...
@@ -114,6 +114,8 @@ static const StaticPixelFormatDesc formats[] = {
{
WINED3DFMT_Q16W16V16U16
,
0x0
,
0x0
,
0x0
,
0x0
,
8
,
0
,
0
,
FALSE
},
/* Vendor-specific formats */
{
WINED3DFMT_ATI2N
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
0
,
0
,
TRUE
},
{
WINED3DFMT_NVHU
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
0
,
0
,
TRUE
},
{
WINED3DFMT_NVHS
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
0
,
0
,
TRUE
},
};
typedef
struct
{
...
...
@@ -528,6 +530,7 @@ const char* debug_d3dformat(WINED3DFORMAT fmt) {
FMT_TO_STR
(
WINED3DFMT_A2W10V10U10
);
FMT_TO_STR
(
WINED3DFMT_UYVY
);
FMT_TO_STR
(
WINED3DFMT_YUY2
);
FMT_TO_STR
(
WINED3DFMT_YV12
);
FMT_TO_STR
(
WINED3DFMT_DXT1
);
FMT_TO_STR
(
WINED3DFMT_DXT2
);
FMT_TO_STR
(
WINED3DFMT_DXT3
);
...
...
@@ -558,6 +561,8 @@ const char* debug_d3dformat(WINED3DFORMAT fmt) {
FMT_TO_STR
(
WINED3DFMT_A32B32G32R32F
);
FMT_TO_STR
(
WINED3DFMT_CxV8U8
);
FMT_TO_STR
(
WINED3DFMT_ATI2N
);
FMT_TO_STR
(
WINED3DFMT_NVHU
);
FMT_TO_STR
(
WINED3DFMT_NVHS
);
#undef FMT_TO_STR
default:
{
...
...
include/wine/wined3d_types.h
View file @
ec495563
...
...
@@ -305,6 +305,8 @@ typedef enum _WINED3DFORMAT {
/* Vendor specific formats */
WINED3DFMT_ATI2N
=
WINEMAKEFOURCC
(
'A'
,
'T'
,
'I'
,
'2'
),
WINED3DFMT_NVHU
=
WINEMAKEFOURCC
(
'N'
,
'V'
,
'H'
,
'U'
),
WINED3DFMT_NVHS
=
WINEMAKEFOURCC
(
'N'
,
'V'
,
'H'
,
'S'
),
WINED3DFMT_FORCE_DWORD
=
0xFFFFFFFF
}
WINED3DFORMAT
;
...
...
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