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
465962da
Commit
465962da
authored
Oct 27, 2007
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Oct 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use native shader limits instead of the maximum the driver can handle in software.
This should prevent software fallbacks and and second it will allow for ps2.0/ps3.0 detection.
parent
e7296eae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
directx.c
dlls/wined3d/directx.c
+8
-8
No files found.
dlls/wined3d/directx.c
View file @
465962da
...
...
@@ -723,24 +723,24 @@ BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
GL_EXTCALL
(
glGetProgramivARB
(
GL_FRAGMENT_PROGRAM_ARB
,
GL_MAX_PROGRAM_ENV_PARAMETERS_ARB
,
&
gl_max
));
gl_info
->
ps_arb_constantsF
=
gl_max
;
TRACE_
(
d3d_caps
)(
"Max ARB_FRAGMENT_PROGRAM float constants: %d
\n
"
,
gl_info
->
ps_arb_constantsF
);
GL_EXTCALL
(
glGetProgramivARB
(
GL_FRAGMENT_PROGRAM_ARB
,
GL_MAX_PROGRAM_TEMPORARIES_ARB
,
&
gl_max
));
GL_EXTCALL
(
glGetProgramivARB
(
GL_FRAGMENT_PROGRAM_ARB
,
GL_MAX_PROGRAM_
NATIVE_
TEMPORARIES_ARB
,
&
gl_max
));
gl_info
->
ps_arb_max_temps
=
gl_max
;
TRACE_
(
d3d_caps
)(
"Max ARB_FRAGMENT_PROGRAM temporaries: %d
\n
"
,
gl_info
->
ps_arb_max_temps
);
GL_EXTCALL
(
glGetProgramivARB
(
GL_FRAGMENT_PROGRAM_ARB
,
GL_MAX_PROGRAM_INSTRUCTIONS_ARB
,
&
gl_max
));
TRACE_
(
d3d_caps
)(
"Max ARB_FRAGMENT_PROGRAM
native
temporaries: %d
\n
"
,
gl_info
->
ps_arb_max_temps
);
GL_EXTCALL
(
glGetProgramivARB
(
GL_FRAGMENT_PROGRAM_ARB
,
GL_MAX_PROGRAM_
NATIVE_
INSTRUCTIONS_ARB
,
&
gl_max
));
gl_info
->
ps_arb_max_instructions
=
gl_max
;
TRACE_
(
d3d_caps
)(
"Max ARB_FRAGMENT_PROGRAM instructions: %d
\n
"
,
gl_info
->
ps_arb_max_instructions
);
TRACE_
(
d3d_caps
)(
"Max ARB_FRAGMENT_PROGRAM
native
instructions: %d
\n
"
,
gl_info
->
ps_arb_max_instructions
);
}
if
(
gl_info
->
supported
[
ARB_VERTEX_PROGRAM
])
{
gl_info
->
vs_arb_version
=
VS_VERSION_11
;
GL_EXTCALL
(
glGetProgramivARB
(
GL_VERTEX_PROGRAM_ARB
,
GL_MAX_PROGRAM_ENV_PARAMETERS_ARB
,
&
gl_max
));
gl_info
->
vs_arb_constantsF
=
gl_max
;
TRACE_
(
d3d_caps
)(
"Max ARB_VERTEX_PROGRAM float constants: %d
\n
"
,
gl_info
->
vs_arb_constantsF
);
GL_EXTCALL
(
glGetProgramivARB
(
GL_VERTEX_PROGRAM_ARB
,
GL_MAX_PROGRAM_TEMPORARIES_ARB
,
&
gl_max
));
GL_EXTCALL
(
glGetProgramivARB
(
GL_VERTEX_PROGRAM_ARB
,
GL_MAX_PROGRAM_
NATIVE_
TEMPORARIES_ARB
,
&
gl_max
));
gl_info
->
vs_arb_max_temps
=
gl_max
;
TRACE_
(
d3d_caps
)(
"Max ARB_VERTEX_PROGRAM temporaries: %d
\n
"
,
gl_info
->
vs_arb_max_temps
);
GL_EXTCALL
(
glGetProgramivARB
(
GL_VERTEX_PROGRAM_ARB
,
GL_MAX_PROGRAM_INSTRUCTIONS_ARB
,
&
gl_max
));
TRACE_
(
d3d_caps
)(
"Max ARB_VERTEX_PROGRAM
native
temporaries: %d
\n
"
,
gl_info
->
vs_arb_max_temps
);
GL_EXTCALL
(
glGetProgramivARB
(
GL_VERTEX_PROGRAM_ARB
,
GL_MAX_PROGRAM_
NATIVE_
INSTRUCTIONS_ARB
,
&
gl_max
));
gl_info
->
vs_arb_max_instructions
=
gl_max
;
TRACE_
(
d3d_caps
)(
"Max ARB_VERTEX_PROGRAM instructions: %d
\n
"
,
gl_info
->
vs_arb_max_instructions
);
TRACE_
(
d3d_caps
)(
"Max ARB_VERTEX_PROGRAM
native
instructions: %d
\n
"
,
gl_info
->
vs_arb_max_instructions
);
}
if
(
gl_info
->
supported
[
ARB_VERTEX_SHADER
])
{
glGetIntegerv
(
GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB
,
&
gl_max
);
...
...
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