summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0/nvc0_tex.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-10-13 18:05:33 +0200
committerChristoph Bumiller <[email protected]>2011-10-15 14:12:31 +0200
commit9934bfe28d3c0f6551ba2cc806a7fe8e0a16ed7c (patch)
tree3a8fc57a195465faea2e45c620032c320d9f63b3 /src/gallium/drivers/nvc0/nvc0_tex.c
parenta4f26f2bea94baea56354fe629ccd971a6d4eb1c (diff)
nv50,nvc0: extend formats table for integer formats
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_tex.c')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_tex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_tex.c b/src/gallium/drivers/nvc0/nvc0_tex.c
index 0cbb4b33b59..668756a6d2c 100644
--- a/src/gallium/drivers/nvc0/nvc0_tex.c
+++ b/src/gallium/drivers/nvc0/nvc0_tex.c
@@ -84,7 +84,7 @@ nvc0_create_sampler_view(struct pipe_context *pipe,
tic[0] = nvc0_format_table[view->pipe.format].tic;
- tex_int = FALSE; /* XXX: integer textures */
+ tex_int = util_format_is_pure_integer(view->pipe.format);
swz[0] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_r, tex_int);
swz[1] = nv50_tic_swizzle(tic[0], view->pipe.swizzle_g, tex_int);