diff options
author | Eric Anholt <[email protected]> | 2012-04-12 16:28:37 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-04-16 11:28:18 -0700 |
commit | d91c8edd851839799d8338ecc127ea004d76fcab (patch) | |
tree | 63a0541eff51fb304fc62676b538de94149ca966 /src/glsl/builtins/profiles | |
parent | 9a01e09ee57a875ccff58316c81395c3f1094aa6 (diff) |
glsl: Add textureSize(*samplerBuffer) support.
Fixes the corresponding new tests in piglit.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/builtins/profiles')
-rw-r--r-- | src/glsl/builtins/profiles/140.frag | 4 | ||||
-rw-r--r-- | src/glsl/builtins/profiles/140.vert | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/glsl/builtins/profiles/140.frag b/src/glsl/builtins/profiles/140.frag index b534827c994..ba616a1cf7f 100644 --- a/src/glsl/builtins/profiles/140.frag +++ b/src/glsl/builtins/profiles/140.frag @@ -504,6 +504,10 @@ ivec2 textureSize(isampler2DRect sampler); ivec2 textureSize(usampler2DRect sampler); ivec2 textureSize(sampler2DRectShadow sampler); +int textureSize( samplerBuffer sampler); +int textureSize(isamplerBuffer sampler); +int textureSize(usamplerBuffer sampler); + /* texture - no bias */ vec4 texture( sampler1D sampler, float P); ivec4 texture(isampler1D sampler, float P); diff --git a/src/glsl/builtins/profiles/140.vert b/src/glsl/builtins/profiles/140.vert index 7aa92402c38..1aab72cc0bb 100644 --- a/src/glsl/builtins/profiles/140.vert +++ b/src/glsl/builtins/profiles/140.vert @@ -504,6 +504,10 @@ ivec2 textureSize(isampler2DRect sampler); ivec2 textureSize(usampler2DRect sampler); ivec2 textureSize(sampler2DRectShadow sampler); +int textureSize( samplerBuffer sampler); +int textureSize(isamplerBuffer sampler); +int textureSize(usamplerBuffer sampler); + /* texture */ vec4 texture( sampler1D sampler, float P); ivec4 texture(isampler1D sampler, float P); |