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
552b335a
Commit
552b335a
authored
May 13, 2020
by
Henri Verbeet
Committed by
Alexandre Julliard
May 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Introduce WINED3D_BITMAP_SIZE.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
149d7b31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
wined3d_private.h
dlls/wined3d/wined3d_private.h
+8
-6
No files found.
dlls/wined3d/wined3d_private.h
View file @
552b335a
...
...
@@ -80,6 +80,8 @@
#define WINED3D_ALPHA_TO_COVERAGE_ENABLE MAKEFOURCC('A','2','M','1')
#define WINED3D_ALPHA_TO_COVERAGE_DISABLE MAKEFOURCC('A','2','M','0')
#define WINED3D_BITMAP_SIZE(x) (((x) + 31) >> 5)
struct
wined3d_fragment_pipe_ops
;
struct
wined3d_adapter
;
struct
wined3d_context
;
...
...
@@ -1969,8 +1971,8 @@ struct wined3d_context
{
const
struct
wined3d_d3d_info
*
d3d_info
;
const
struct
wined3d_state_entry
*
state_table
;
uint32_t
dirty_graphics_states
[
STATE_HIGHEST
/
(
sizeof
(
uint32_t
)
*
CHAR_BIT
)
+
1
];
uint32_t
dirty_compute_states
[
STATE_COMPUTE_COUNT
/
(
sizeof
(
uint32_t
)
*
CHAR_BIT
)
+
1
];
uint32_t
dirty_graphics_states
[
WINED3D_BITMAP_SIZE
(
STATE_HIGHEST
)
];
uint32_t
dirty_compute_states
[
WINED3D_BITMAP_SIZE
(
STATE_COMPUTE_COUNT
)
];
struct
wined3d_device
*
device
;
struct
wined3d_swapchain
*
swapchain
;
...
...
@@ -4164,16 +4166,16 @@ struct wined3d_vertex_declaration
struct
wined3d_saved_states
{
DWORD
vs_consts_f
[
WINED3D_MAX_VS_CONSTS_F
>>
5
];
uint32_t
vs_consts_f
[
WINED3D_BITMAP_SIZE
(
WINED3D_MAX_VS_CONSTS_F
)
];
WORD
vertexShaderConstantsI
;
/* WINED3D_MAX_CONSTS_I, 16 */
WORD
vertexShaderConstantsB
;
/* WINED3D_MAX_CONSTS_B, 16 */
DWORD
ps_consts_f
[
WINED3D_MAX_PS_CONSTS_F
>>
5
];
uint32_t
ps_consts_f
[
WINED3D_BITMAP_SIZE
(
WINED3D_MAX_PS_CONSTS_F
)
];
WORD
pixelShaderConstantsI
;
/* WINED3D_MAX_CONSTS_I, 16 */
WORD
pixelShaderConstantsB
;
/* WINED3D_MAX_CONSTS_B, 16 */
DWORD
transform
[(
WINED3D_HIGHEST_TRANSFORM_STATE
>>
5
)
+
1
];
uint32_t
transform
[
WINED3D_BITMAP_SIZE
(
WINED3D_HIGHEST_TRANSFORM_STATE
+
1
)
];
WORD
streamSource
;
/* WINED3D_MAX_STREAMS, 16 */
WORD
streamFreq
;
/* WINED3D_MAX_STREAMS, 16 */
DWORD
renderState
[(
WINEHIGHEST_RENDER_STATE
>>
5
)
+
1
];
uint32_t
renderState
[
WINED3D_BITMAP_SIZE
(
WINEHIGHEST_RENDER_STATE
+
1
)
];
DWORD
textureState
[
WINED3D_MAX_TEXTURES
];
/* WINED3D_HIGHEST_TEXTURE_STATE + 1, 18 */
WORD
samplerState
[
WINED3D_MAX_COMBINED_SAMPLERS
];
/* WINED3D_HIGHEST_SAMPLER_STATE + 1, 14 */
DWORD
clipplane
;
/* WINED3D_MAX_CLIP_DISTANCES, 8 */
...
...
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