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
caea3d10
Commit
caea3d10
authored
Jan 26, 2022
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use wined3d_bit_scan() in context_update_stream_info().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1e332808
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
context.c
dlls/wined3d/context.c
+4
-5
No files found.
dlls/wined3d/context.c
View file @
caea3d10
...
...
@@ -266,20 +266,19 @@ void context_update_stream_info(struct wined3d_context *context, const struct wi
const
struct
wined3d_d3d_info
*
d3d_info
=
context
->
d3d_info
;
DWORD
prev_all_vbo
=
stream_info
->
all_vbo
;
unsigned
int
i
;
WORD
map
;
uint32_t
map
;
wined3d_stream_info_from_declaration
(
stream_info
,
state
,
d3d_info
);
stream_info
->
all_vbo
=
1
;
for
(
i
=
0
,
map
=
stream_info
->
use_map
;
map
;
map
>>=
1
,
++
i
)
map
=
stream_info
->
use_map
;
while
(
map
)
{
struct
wined3d_stream_info_element
*
element
;
struct
wined3d_bo_address
data
;
struct
wined3d_buffer
*
buffer
;
if
(
!
(
map
&
1
))
continue
;
i
=
wined3d_bit_scan
(
&
map
);
element
=
&
stream_info
->
elements
[
i
];
buffer
=
state
->
streams
[
element
->
stream_idx
].
buffer
;
...
...
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