diff options
author | Brian <brian@yutani.localnet.net> | 2007-01-08 16:02:40 -0700 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2007-01-08 16:02:40 -0700 |
commit | 85e0634b54c8cbe65c66f2a4b118ca77cfc1b8ac (patch) | |
tree | 037b4ed78a814887bb25c0a5def1437eb0d93281 /src/mesa/shader/slang/library/slang_common_builtin.gc | |
parent | 42153d7858686cfd88e919c0889a56d3a13a603e (diff) |
update texture1D functions
Diffstat (limited to 'src/mesa/shader/slang/library/slang_common_builtin.gc')
-rw-r--r-- | src/mesa/shader/slang/library/slang_common_builtin.gc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mesa/shader/slang/library/slang_common_builtin.gc b/src/mesa/shader/slang/library/slang_common_builtin.gc index 184a92ce34..b4720a12e0 100644 --- a/src/mesa/shader/slang/library/slang_common_builtin.gc +++ b/src/mesa/shader/slang/library/slang_common_builtin.gc @@ -1615,19 +1615,21 @@ bvec4 not (const bvec4 v) vec4 texture1D(const sampler1D sampler, const float coord) { - __asm vec4_tex1d __retVal, coord; // XXX sampler + __asm vec4_tex1d __retVal, sampler, coord; } vec4 texture1DProj(const sampler1D sampler, const vec2 coord) { - float pcoord = coord.s / coord.t; - __asm vec4_tex1d __retVal, pcoord; // XXX sampler + // new coord with .z moved to .w + vec4 coord4; + coord4.x = coord.x; + coord4.w = coord.y; + __asm vec4_texp1d __retVal, sampler, coord4; } vec4 texture1DProj(const sampler1D sampler, const vec4 coord) { - float pcoord = coord.s / coord.q; - __asm vec4_tex1d __retVal, pcoord; // XXX sampler + __asm vec4_texp1d __retVal, sampler, coord; } |