summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_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/nv50/nv50_tex.c
parenta4f26f2bea94baea56354fe629ccd971a6d4eb1c (diff)
nv50,nvc0: extend formats table for integer formats
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_tex.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_tex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/nv50_tex.c b/src/gallium/drivers/nv50/nv50_tex.c
index 9436ac295de..1be4e9aff19 100644
--- a/src/gallium/drivers/nv50/nv50_tex.c
+++ b/src/gallium/drivers/nv50/nv50_tex.c
@@ -103,7 +103,7 @@ nv50_create_sampler_view(struct pipe_context *pipe,
tic[0] = nv50_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);