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
2d802af4
Commit
2d802af4
authored
Oct 07, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Oct 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make shader specific constants accessible via GL_LIMITS.
parent
afcd2c53
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+1
-1
directx.c
dlls/wined3d/directx.c
+0
-0
glsl_shader.c
dlls/wined3d/glsl_shader.c
+2
-2
wined3d_gl.h
dlls/wined3d/wined3d_gl.h
+9
-9
No files found.
dlls/wined3d/arb_program_shader.c
View file @
2d802af4
...
...
@@ -3481,7 +3481,7 @@ static GLuint shader_arb_generate_pshader(IWineD3DPixelShaderImpl *This, struct
struct
arb_ps_np2fixup_info
*
const
fixup
=
priv_ctx
.
cur_np2fixup_info
;
const
WORD
map
=
priv_ctx
.
cur_ps_args
->
super
.
np2_fixup
;
const
UINT
max_lconsts
=
gl_info
->
ps_arb_max_local_constants
;
const
UINT
max_lconsts
=
GL_LIMITS
(
ps_arb_local_constants
)
;
fixup
->
offset
=
next_local
;
fixup
->
super
.
active
=
0
;
...
...
dlls/wined3d/directx.c
View file @
2d802af4
This diff is collapsed.
Click to expand it.
dlls/wined3d/glsl_shader.c
View file @
2d802af4
...
...
@@ -4611,7 +4611,7 @@ static void shader_glsl_get_caps(WINED3DDEVTYPE devtype,
* of native instructions, so use that here. For more info see the pixel shader versioning code below.
*/
if
((
gl_info
->
supported
[
NV_VERTEX_PROGRAM2
]
&&
!
gl_info
->
supported
[
NV_VERTEX_PROGRAM3
])
||
gl_info
->
ps_arb_max
_instructions
<=
512
)
||
gl_info
->
max_ps_arb
_instructions
<=
512
)
pCaps
->
VertexShaderVersion
=
WINED3DVS_VERSION
(
2
,
0
);
else
pCaps
->
VertexShaderVersion
=
WINED3DVS_VERSION
(
3
,
0
);
...
...
@@ -4630,7 +4630,7 @@ static void shader_glsl_get_caps(WINED3DDEVTYPE devtype,
* NOTE: ps3.0 hardware requires 512 or more instructions but ati and nvidia offer 'enough' (1024 vs 4096) on their most basic ps3.0 hardware.
*/
if
((
gl_info
->
supported
[
NV_FRAGMENT_PROGRAM
]
&&
!
gl_info
->
supported
[
NV_FRAGMENT_PROGRAM2
])
||
(
gl_info
->
ps_arb_max
_instructions
<=
512
))
||
(
gl_info
->
max_ps_arb
_instructions
<=
512
))
pCaps
->
PixelShaderVersion
=
WINED3DPS_VERSION
(
2
,
0
);
else
pCaps
->
PixelShaderVersion
=
WINED3DPS_VERSION
(
3
,
0
);
...
...
dlls/wined3d/wined3d_gl.h
View file @
2d802af4
...
...
@@ -4166,15 +4166,15 @@ struct wined3d_gl_info
unsigned
int
max_vshader_constantsF
;
unsigned
int
max_pshader_constantsF
;
unsigned
int
vs_arb_constantsF
;
unsigned
int
vs_arb_max
_instructions
;
unsigned
int
vs_arb_max
_temps
;
unsigned
int
ps_arb_constantsF
;
unsigned
int
ps_arb_max
_local_constants
;
unsigned
int
ps_arb_max
_instructions
;
unsigned
int
ps_arb_max
_temps
;
unsigned
int
vs_glsl_constantsF
;
unsigned
int
ps_glsl_constantsF
;
unsigned
int
max_
vs_arb_constantsF
;
unsigned
int
max_vs_arb
_instructions
;
unsigned
int
max_vs_arb
_temps
;
unsigned
int
max_
ps_arb_constantsF
;
unsigned
int
max_ps_arb
_local_constants
;
unsigned
int
max_ps_arb
_instructions
;
unsigned
int
max_ps_arb
_temps
;
unsigned
int
max_
vs_glsl_constantsF
;
unsigned
int
max_
ps_glsl_constantsF
;
DWORD
reserved_glsl_constants
;
...
...
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