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
828f42cb
Commit
828f42cb
authored
Feb 19, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add some traces to state handlers.
Should make it a bit clearer what's happening in some cases.
parent
c8a3f3f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+4
-0
state.c
dlls/wined3d/state.c
+9
-0
No files found.
dlls/wined3d/arb_program_shader.c
View file @
828f42cb
...
@@ -2975,6 +2975,8 @@ static void fragment_prog_arbfp(DWORD state, IWineD3DStateBlockImpl *stateblock,
...
@@ -2975,6 +2975,8 @@ static void fragment_prog_arbfp(DWORD state, IWineD3DStateBlockImpl *stateblock,
const
struct
arbfp_ffp_desc
*
desc
;
const
struct
arbfp_ffp_desc
*
desc
;
unsigned
int
i
;
unsigned
int
i
;
TRACE
(
"state %#x, stateblock %p, context %p
\n
"
,
state
,
stateblock
,
context
);
if
(
isStateDirty
(
context
,
STATE_RENDER
(
WINED3DRS_FOGENABLE
)))
{
if
(
isStateDirty
(
context
,
STATE_RENDER
(
WINED3DRS_FOGENABLE
)))
{
if
(
!
use_pshader
&&
device
->
shader_backend
==
&
arb_program_shader_backend
&&
context
->
last_was_pshader
)
{
if
(
!
use_pshader
&&
device
->
shader_backend
==
&
arb_program_shader_backend
&&
context
->
last_was_pshader
)
{
/* Reload fixed function constants since they collide with the pixel shader constants */
/* Reload fixed function constants since they collide with the pixel shader constants */
...
@@ -3061,6 +3063,8 @@ static void fragment_prog_arbfp(DWORD state, IWineD3DStateBlockImpl *stateblock,
...
@@ -3061,6 +3063,8 @@ static void fragment_prog_arbfp(DWORD state, IWineD3DStateBlockImpl *stateblock,
static
void
state_arbfp_fog
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
static
void
state_arbfp_fog
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
enum
fogsource
new_source
;
enum
fogsource
new_source
;
TRACE
(
"state %#x, stateblock %p, context %p
\n
"
,
state
,
stateblock
,
context
);
if
(
!
isStateDirty
(
context
,
STATE_PIXELSHADER
))
{
if
(
!
isStateDirty
(
context
,
STATE_PIXELSHADER
))
{
fragment_prog_arbfp
(
state
,
stateblock
,
context
);
fragment_prog_arbfp
(
state
,
stateblock
,
context
);
}
}
...
...
dlls/wined3d/state.c
View file @
828f42cb
...
@@ -469,6 +469,8 @@ static void state_alpha(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3D
...
@@ -469,6 +469,8 @@ static void state_alpha(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3D
float
ref
;
float
ref
;
BOOL
enable_ckey
=
FALSE
;
BOOL
enable_ckey
=
FALSE
;
TRACE
(
"state %#x, stateblock %p, context %p
\n
"
,
state
,
stateblock
,
context
);
/* Find out if the texture on the first stage has a ckey set
/* Find out if the texture on the first stage has a ckey set
* The alpha state func reads the texture settings, even though alpha and texture are not grouped
* The alpha state func reads the texture settings, even though alpha and texture are not grouped
* together. This is to avoid making a huge alpha+texture+texture stage+ckey block due to the hardly
* together. This is to avoid making a huge alpha+texture+texture stage+ckey block due to the hardly
...
@@ -897,6 +899,9 @@ static void state_stencilwrite(DWORD state, IWineD3DStateBlockImpl *stateblock,
...
@@ -897,6 +899,9 @@ static void state_stencilwrite(DWORD state, IWineD3DStateBlockImpl *stateblock,
}
}
static
void
state_fog_vertexpart
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
static
void
state_fog_vertexpart
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
TRACE
(
"state %#x, stateblock %p, context %p
\n
"
,
state
,
stateblock
,
context
);
if
(
!
stateblock
->
renderState
[
WINED3DRS_FOGENABLE
])
return
;
if
(
!
stateblock
->
renderState
[
WINED3DRS_FOGENABLE
])
return
;
/* Table fog on: Never use fog coords, and use per-fragment fog */
/* Table fog on: Never use fog coords, and use per-fragment fog */
...
@@ -981,6 +986,8 @@ void state_fogstartend(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DC
...
@@ -981,6 +986,8 @@ void state_fogstartend(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DC
void
state_fog_fragpart
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
void
state_fog_fragpart
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
enum
fogsource
new_source
;
enum
fogsource
new_source
;
TRACE
(
"state %#x, stateblock %p, context %p
\n
"
,
state
,
stateblock
,
context
);
if
(
!
stateblock
->
renderState
[
WINED3DRS_FOGENABLE
])
{
if
(
!
stateblock
->
renderState
[
WINED3DRS_FOGENABLE
])
{
/* No fog? Disable it, and we're done :-) */
/* No fog? Disable it, and we're done :-) */
glDisableWINE
(
GL_FOG
);
glDisableWINE
(
GL_FOG
);
...
@@ -3285,6 +3292,8 @@ static void sampler_texmatrix(DWORD state, IWineD3DStateBlockImpl *stateblock, W
...
@@ -3285,6 +3292,8 @@ static void sampler_texmatrix(DWORD state, IWineD3DStateBlockImpl *stateblock, W
DWORD
sampler
=
state
-
STATE_SAMPLER
(
0
);
DWORD
sampler
=
state
-
STATE_SAMPLER
(
0
);
IWineD3DBaseTexture
*
texture
=
stateblock
->
textures
[
sampler
];
IWineD3DBaseTexture
*
texture
=
stateblock
->
textures
[
sampler
];
TRACE
(
"state %#x, stateblock %p, context %p
\n
"
,
state
,
stateblock
,
context
);
if
(
!
texture
)
return
;
if
(
!
texture
)
return
;
/* The fixed function np2 texture emulation uses the texture matrix to fix up the coordinates
/* The fixed function np2 texture emulation uses the texture matrix to fix up the coordinates
* IWineD3DBaseTexture::ApplyStateChanges multiplies the set matrix with a fixup matrix. Before the
* IWineD3DBaseTexture::ApplyStateChanges multiplies the set matrix with a fixup matrix. Before the
...
...
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