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
27dc41d0
Commit
27dc41d0
authored
Dec 12, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 12, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix the source swizzle for WINED3DSIH_LOG and WINED3DSIH_LOGP.
parent
2fe08ed6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
15 deletions
+9
-15
visual.c
dlls/d3d8/tests/visual.c
+8
-14
glsl_shader.c
dlls/wined3d/glsl_shader.c
+1
-1
No files found.
dlls/d3d8/tests/visual.c
View file @
27dc41d0
...
...
@@ -1774,16 +1774,15 @@ static void test_scalar_instructions(IDirect3DDevice8 *device)
const
char
*
name
;
const
DWORD
*
byte_code
;
D3DCOLOR
color
;
BOOL
todo
;
}
test_data
[]
=
{
{
"rcp_test"
,
rcp_test
,
D3DCOLOR_ARGB
(
0x00
,
0x80
,
0x80
,
0x80
)
,
FALSE
},
{
"rsq_test"
,
rsq_test
,
D3DCOLOR_ARGB
(
0x00
,
0xb4
,
0xb4
,
0xb4
)
,
FALSE
},
{
"exp_test"
,
exp_test
,
D3DCOLOR_ARGB
(
0x00
,
0x40
,
0x40
,
0x40
)
,
FALSE
},
{
"expp_test"
,
expp_test
,
D3DCOLOR_ARGB
(
0x00
,
0x40
,
0x40
,
0x40
)
,
FALSE
},
{
"log_test"
,
log_test
,
D3DCOLOR_ARGB
(
0x00
,
0xff
,
0xff
,
0xff
)
,
TRUE
},
{
"logp_test"
,
logp_test
,
D3DCOLOR_ARGB
(
0x00
,
0xff
,
0xff
,
0xff
)
,
TRUE
},
{
"rcp_test"
,
rcp_test
,
D3DCOLOR_ARGB
(
0x00
,
0x80
,
0x80
,
0x80
)},
{
"rsq_test"
,
rsq_test
,
D3DCOLOR_ARGB
(
0x00
,
0xb4
,
0xb4
,
0xb4
)},
{
"exp_test"
,
exp_test
,
D3DCOLOR_ARGB
(
0x00
,
0x40
,
0x40
,
0x40
)},
{
"expp_test"
,
expp_test
,
D3DCOLOR_ARGB
(
0x00
,
0x40
,
0x40
,
0x40
)},
{
"log_test"
,
log_test
,
D3DCOLOR_ARGB
(
0x00
,
0xff
,
0xff
,
0xff
)},
{
"logp_test"
,
logp_test
,
D3DCOLOR_ARGB
(
0x00
,
0xff
,
0xff
,
0xff
)},
};
unsigned
int
i
;
DWORD
shader
;
...
...
@@ -1808,13 +1807,8 @@ static void test_scalar_instructions(IDirect3DDevice8 *device)
ok
(
SUCCEEDED
(
hr
),
"%s: Failed to end scene, hr %#x.
\n
"
,
test_data
[
i
].
name
,
hr
);
color
=
getPixelColor
(
device
,
320
,
240
);
if
(
test_data
[
i
].
todo
)
todo_wine
ok
(
color_match
(
color
,
test_data
[
i
].
color
,
4
),
"%s: Got unexpected color 0x%08x, expected 0x%08x.
\n
"
,
test_data
[
i
].
name
,
color
,
test_data
[
i
].
color
);
else
ok
(
color_match
(
color
,
test_data
[
i
].
color
,
4
),
"%s: Got unexpected color 0x%08x, expected 0x%08x.
\n
"
,
test_data
[
i
].
name
,
color
,
test_data
[
i
].
color
);
ok
(
color_match
(
color
,
test_data
[
i
].
color
,
4
),
"%s: Got unexpected color 0x%08x, expected 0x%08x.
\n
"
,
test_data
[
i
].
name
,
color
,
test_data
[
i
].
color
);
hr
=
IDirect3DDevice8_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"%s: Failed to present, hr %#x.
\n
"
,
test_data
[
i
].
name
,
hr
);
...
...
dlls/wined3d/glsl_shader.c
View file @
27dc41d0
...
...
@@ -2601,7 +2601,7 @@ static void shader_glsl_log(const struct wined3d_shader_instruction *ins)
dst_write_mask
=
shader_glsl_append_dst
(
buffer
,
ins
);
dst_size
=
shader_glsl_get_write_mask_size
(
dst_write_mask
);
shader_glsl_add_src_param
(
ins
,
&
ins
->
src
[
0
],
WINED3DSP_WRITEMASK_
0
,
&
src0_param
);
shader_glsl_add_src_param
(
ins
,
&
ins
->
src
[
0
],
WINED3DSP_WRITEMASK_
3
,
&
src0_param
);
if
(
dst_size
>
1
)
{
...
...
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