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
ec30e9a8
Commit
ec30e9a8
authored
Jul 01, 2009
by
Tobias Jakobi
Committed by
Alexandre Julliard
Jul 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add arb_ps_np2fixup_info structure and improve structure packing for…
wined3d: Add arb_ps_np2fixup_info structure and improve structure packing for arb_ps_compiled_shader.
parent
2d532a15
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+16
-3
No files found.
dlls/wined3d/arb_program_shader.c
View file @
ec30e9a8
...
...
@@ -115,6 +115,16 @@ struct control_frame
BOOL
had_else
;
};
struct
arb_ps_np2fixup_info
{
struct
ps_np2fixup_info
super
;
/* For ARB we need a offset value:
* With both GLSL and ARB mode the NP2 fixup information (the texture dimensions) are stored in a
* consecutive way (GLSL uses a uniform array). Since ARB doesn't know the notion of a "standalone"
* array we need an offset to the index inside the program local parameter array. */
UINT
offset
;
};
struct
arb_ps_compile_args
{
struct
ps_compile_args
super
;
...
...
@@ -131,13 +141,14 @@ struct stb_const_desc
struct
arb_ps_compiled_shader
{
struct
arb_ps_compile_args
args
;
GLuint
prgId
;
struct
arb_ps_np2fixup_info
np2fixup_info
;
struct
stb_const_desc
bumpenvmatconst
[
MAX_TEXTURES
];
unsigned
char
numbumpenvmatconsts
;
struct
stb_const_desc
luminanceconst
[
MAX_TEXTURES
];
UINT
int_consts
[
MAX_CONST_I
];
char
num_int_consts
;
GLuint
prgId
;
UINT
ycorrection
;
unsigned
char
numbumpenvmatconsts
;
char
num_int_consts
;
};
struct
arb_vs_compile_args
...
...
@@ -194,6 +205,7 @@ struct shader_arb_ctx_priv
const
struct
arb_ps_compile_args
*
cur_ps_args
;
const
struct
arb_ps_compiled_shader
*
compiled_fprog
;
const
struct
arb_vs_compiled_shader
*
compiled_vprog
;
struct
arb_ps_np2fixup_info
*
cur_np2fixup_info
;
struct
list
control_frames
;
struct
list
record
;
BOOL
recording
;
...
...
@@ -3191,6 +3203,7 @@ static GLuint shader_arb_generate_pshader(IWineD3DPixelShaderImpl *This,
memset
(
&
priv_ctx
,
0
,
sizeof
(
priv_ctx
));
priv_ctx
.
cur_ps_args
=
args
;
priv_ctx
.
compiled_fprog
=
compiled
;
priv_ctx
.
cur_np2fixup_info
=
&
compiled
->
np2fixup_info
;
init_ps_input
(
This
,
args
,
&
priv_ctx
);
list_init
(
&
priv_ctx
.
control_frames
);
...
...
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