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
86567133
Commit
86567133
authored
Aug 30, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Implement texldb.
parent
a006d256
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
glsl_shader.c
dlls/wined3d/glsl_shader.c
+11
-2
wined3d_private_types.h
dlls/wined3d/wined3d_private_types.h
+1
-0
No files found.
dlls/wined3d/glsl_shader.c
View file @
86567133
...
...
@@ -1605,8 +1605,17 @@ void pshader_glsl_tex(SHADER_OPCODE_ARG* arg) {
}
else
{
glsl_src_param_t
coord_param
;
shader_glsl_add_src_param
(
arg
,
arg
->
src
[
0
],
arg
->
src_addr
[
0
],
mask
,
&
coord_param
);
shader_addline
(
arg
->
buffer
,
"%s(Psampler%u, %s)%s);
\n
"
,
sample_function
.
name
,
sampler_idx
,
coord_param
.
param_str
,
dst_swizzle
);
if
(
arg
->
opcode_token
&
WINED3DSI_TEXLD_BIAS
)
{
glsl_src_param_t
bias
;
shader_glsl_add_src_param
(
arg
,
arg
->
src
[
0
],
arg
->
src_addr
[
0
],
WINED3DSP_WRITEMASK_3
,
&
bias
);
shader_addline
(
arg
->
buffer
,
"%s(Psampler%u, %s, %s)%s);
\n
"
,
sample_function
.
name
,
sampler_idx
,
coord_param
.
param_str
,
bias
.
param_str
,
dst_swizzle
);
}
else
{
shader_addline
(
arg
->
buffer
,
"%s(Psampler%u, %s)%s);
\n
"
,
sample_function
.
name
,
sampler_idx
,
coord_param
.
param_str
,
dst_swizzle
);
}
}
}
...
...
dlls/wined3d/wined3d_private_types.h
View file @
86567133
...
...
@@ -293,6 +293,7 @@ typedef enum _WINED3DSHADER_INSTRUCTION_OPCODE_TYPE {
/* Undocumented opcode control to identify projective texture lookups in ps 2.0 and later */
#define WINED3DSI_TEXLD_PROJECT 0x00010000
#define WINED3DSI_TEXLD_BIAS 0x00020000
/** Shader version tokens, and shader end tokens **/
...
...
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