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
2dd237e2
Commit
2dd237e2
authored
Nov 03, 2014
by
Matteo Bruni
Committed by
Alexandre Julliard
Nov 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Dirtify pixel shader on texture format change.
parent
ea85db2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
cs.c
dlls/wined3d/cs.c
+6
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+8
-0
No files found.
dlls/wined3d/cs.c
View file @
2dd237e2
...
...
@@ -636,10 +636,15 @@ static void wined3d_cs_exec_set_texture(struct wined3d_cs *cs, const void *data)
if
(
op
->
texture
)
{
const
struct
wined3d_format
*
new_format
=
op
->
texture
->
resource
.
format
;
const
struct
wined3d_format
*
old_format
=
prev
?
prev
->
resource
.
format
:
NULL
;
if
(
InterlockedIncrement
(
&
op
->
texture
->
resource
.
bind_count
)
==
1
)
op
->
texture
->
sampler
=
op
->
stage
;
if
(
!
prev
||
op
->
texture
->
target
!=
prev
->
target
)
if
(
!
prev
||
op
->
texture
->
target
!=
prev
->
target
||
!
is_same_fixup
(
new_format
->
color_fixup
,
old_format
->
color_fixup
)
||
(
new_format
->
flags
&
WINED3DFMT_FLAG_SHADOW
)
!=
(
old_format
->
flags
&
WINED3DFMT_FLAG_SHADOW
))
device_invalidate_state
(
cs
->
device
,
STATE_SHADER
(
WINED3D_SHADER_TYPE_PIXEL
));
if
(
!
prev
&&
op
->
stage
<
d3d_info
->
limits
.
ffp_blend_stages
)
...
...
dlls/wined3d/wined3d_private.h
View file @
2dd237e2
...
...
@@ -145,6 +145,14 @@ static inline BOOL is_complex_fixup(struct color_fixup_desc fixup)
return
fixup
.
x_source
==
CHANNEL_SOURCE_COMPLEX0
||
fixup
.
x_source
==
CHANNEL_SOURCE_COMPLEX1
;
}
static
inline
BOOL
is_same_fixup
(
struct
color_fixup_desc
f1
,
struct
color_fixup_desc
f2
)
{
return
f1
.
x_sign_fixup
==
f2
.
x_sign_fixup
&&
f1
.
x_source
==
f2
.
x_source
&&
f1
.
y_sign_fixup
==
f2
.
y_sign_fixup
&&
f1
.
y_source
==
f2
.
y_source
&&
f1
.
z_sign_fixup
==
f2
.
z_sign_fixup
&&
f1
.
z_source
==
f2
.
z_source
&&
f1
.
w_sign_fixup
==
f2
.
w_sign_fixup
&&
f1
.
w_source
==
f2
.
w_source
;
}
static
inline
enum
complex_fixup
get_complex_fixup
(
struct
color_fixup_desc
fixup
)
{
enum
complex_fixup
complex_fixup
=
0
;
...
...
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