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
3ad03206
Commit
3ad03206
authored
Jun 25, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Jun 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Rename max_samplers to max_fragment_samplers.
parent
71d7da11
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
device.c
dlls/wined3d/device.c
+1
-1
directx.c
dlls/wined3d/directx.c
+4
-4
glsl_shader.c
dlls/wined3d/glsl_shader.c
+1
-1
state.c
dlls/wined3d/state.c
+2
-2
wined3d_gl.h
include/wine/wined3d_gl.h
+1
-1
No files found.
dlls/wined3d/device.c
View file @
3ad03206
...
...
@@ -1811,7 +1811,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPR
/* Initialize the texture unit mapping to a 1:1 mapping */
for
(
state
=
0
;
state
<
MAX_SAMPLERS
;
state
++
)
{
if
(
state
<
GL_LIMITS
(
samplers
))
{
if
(
state
<
GL_LIMITS
(
fragment_
samplers
))
{
This
->
texUnitMap
[
state
]
=
state
;
This
->
rev_tex_unit_map
[
state
]
=
state
;
}
else
{
...
...
dlls/wined3d/directx.c
View file @
3ad03206
...
...
@@ -494,7 +494,7 @@ BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info, Display* display) {
gl_info
->
max_buffers
=
1
;
gl_info
->
max_textures
=
1
;
gl_info
->
max_texture_stages
=
1
;
gl_info
->
max_
samplers
=
1
;
gl_info
->
max_
fragment_samplers
=
1
;
gl_info
->
max_sampler_stages
=
1
;
gl_info
->
ps_arb_version
=
PS_VERSION_NOT_SUPPORTED
;
gl_info
->
ps_arb_max_temps
=
0
;
...
...
@@ -568,7 +568,7 @@ BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info, Display* display) {
gl_info
->
supported
[
ARB_FRAGMENT_PROGRAM
]
=
TRUE
;
glGetIntegerv
(
GL_MAX_TEXTURE_IMAGE_UNITS_ARB
,
&
gl_max
);
TRACE_
(
d3d_caps
)(
" FOUND: ARB Pixel Shader support - GL_MAX_TEXTURE_IMAGE_UNITS_ARB=%u
\n
"
,
gl_max
);
gl_info
->
max_samplers
=
min
(
MAX_SAMPLERS
,
gl_max
);
gl_info
->
max_
fragment_
samplers
=
min
(
MAX_SAMPLERS
,
gl_max
);
GL_EXTCALL
(
glGetProgramivARB
(
GL_FRAGMENT_PROGRAM_ARB
,
GL_MAX_PROGRAM_ENV_PARAMETERS_ARB
,
&
gl_max
));
TRACE_
(
d3d_caps
)(
" FOUND: ARB Pixel Shader support - max float constants=%u
\n
"
,
gl_max
);
gl_info
->
ps_arb_constantsF
=
gl_max
;
...
...
@@ -596,7 +596,7 @@ BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info, Display* display) {
gl_info
->
supported
[
ARB_MULTITEXTURE
]
=
TRUE
;
gl_info
->
max_textures
=
min
(
MAX_TEXTURES
,
gl_max
);
gl_info
->
max_texture_stages
=
min
(
MAX_TEXTURES
,
gl_max
);
gl_info
->
max_
samplers
=
max
(
gl_info
->
max
_samplers
,
gl_max
);
gl_info
->
max_
fragment_samplers
=
max
(
gl_info
->
max_fragment
_samplers
,
gl_max
);
}
else
if
(
strcmp
(
ThisExtn
,
"GL_ARB_texture_cube_map"
)
==
0
)
{
TRACE_
(
d3d_caps
)(
" FOUND: ARB Texture Cube Map support
\n
"
);
gl_info
->
supported
[
ARB_TEXTURE_CUBE_MAP
]
=
TRUE
;
...
...
@@ -838,7 +838,7 @@ BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info, Display* display) {
/* In some cases the number of texture stages can be larger than the number
* of samplers. The GF4 for example can use only 2 samplers (no fragment
* shaders), but 8 texture stages (register combiners). */
gl_info
->
max_sampler_stages
=
max
(
gl_info
->
max_samplers
,
gl_info
->
max_texture_stages
);
gl_info
->
max_sampler_stages
=
max
(
gl_info
->
max_
fragment_
samplers
,
gl_info
->
max_texture_stages
);
/* We can only use ORM_FBO when the hardware supports it. */
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
&&
!
gl_info
->
supported
[
EXT_FRAMEBUFFER_OBJECT
])
{
...
...
dlls/wined3d/glsl_shader.c
View file @
3ad03206
...
...
@@ -85,7 +85,7 @@ static void shader_glsl_load_psamplers(
int
i
;
char
sampler_name
[
20
];
for
(
i
=
0
;
i
<
GL_LIMITS
(
samplers
);
++
i
)
{
for
(
i
=
0
;
i
<
GL_LIMITS
(
fragment_
samplers
);
++
i
)
{
if
(
stateBlock
->
textures
[
i
]
!=
NULL
)
{
snprintf
(
sampler_name
,
sizeof
(
sampler_name
),
"Psampler%d"
,
i
);
name_loc
=
GL_EXTCALL
(
glGetUniformLocationARB
(
programId
,
sampler_name
));
...
...
dlls/wined3d/state.c
View file @
3ad03206
...
...
@@ -1910,7 +1910,7 @@ static void tex_coordindex(DWORD state, IWineD3DStateBlockImpl *stateblock, Wine
}
if
(
GL_SUPPORT
(
ARB_MULTITEXTURE
))
{
if
(
mapped_stage
>=
GL_LIMITS
(
samplers
))
{
if
(
mapped_stage
>=
GL_LIMITS
(
fragment_
samplers
))
{
return
;
}
GL_EXTCALL
(
glActiveTextureARB
(
GL_TEXTURE0_ARB
+
mapped_stage
));
...
...
@@ -2138,7 +2138,7 @@ static void sampler(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DCont
}
if
(
GL_SUPPORT
(
ARB_MULTITEXTURE
))
{
if
(
mapped_stage
>=
GL_LIMITS
(
samplers
))
{
if
(
mapped_stage
>=
GL_LIMITS
(
fragment_
samplers
))
{
return
;
}
GL_EXTCALL
(
glActiveTextureARB
(
GL_TEXTURE0_ARB
+
mapped_stage
));
...
...
include/wine/wined3d_gl.h
View file @
3ad03206
...
...
@@ -1961,7 +1961,7 @@ typedef struct _WineD3D_GL_Info {
UINT
max_lights
;
UINT
max_textures
;
UINT
max_texture_stages
;
UINT
max_samplers
;
UINT
max_
fragment_
samplers
;
UINT
max_sampler_stages
;
UINT
max_clipplanes
;
UINT
max_texture_size
;
...
...
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