summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/svga/svga_sampler_view.c
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2011-02-11 21:55:29 +0000
committerJosé Fonseca <jfonseca@vmware.com>2011-02-14 10:53:54 +0000
commit9305e93114542632384eb38da08018b4b9d1ab96 (patch)
treefc1383030e56c5bb4faaa957916cf3c0b52ab0a4 /src/gallium/drivers/svga/svga_sampler_view.c
parenta0c293ec117c8a6f471061076ba87e245759e0f6 (diff)
svga: Set the appropriate flags when creating sampler/surface views.
Diffstat (limited to 'src/gallium/drivers/svga/svga_sampler_view.c')
-rw-r--r--src/gallium/drivers/svga/svga_sampler_view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_sampler_view.c b/src/gallium/drivers/svga/svga_sampler_view.c
index 6911f13f77..079046e468 100644
--- a/src/gallium/drivers/svga/svga_sampler_view.c
+++ b/src/gallium/drivers/svga/svga_sampler_view.c
@@ -49,6 +49,7 @@ svga_get_tex_sampler_view(struct pipe_context *pipe,
struct svga_screen *ss = svga_screen(pt->screen);
struct svga_texture *tex = svga_texture(pt);
struct svga_sampler_view *sv = NULL;
+ SVGA3dSurfaceFlags flags = SVGA3D_SURFACE_HINT_TEXTURE;
SVGA3dSurfaceFormat format = svga_translate_format(pt->format);
boolean view = TRUE;
@@ -126,7 +127,7 @@ svga_get_tex_sampler_view(struct pipe_context *pipe,
pt->last_level);
sv->age = tex->age;
- sv->handle = svga_texture_view_surface(pipe, tex, format,
+ sv->handle = svga_texture_view_surface(pipe, tex, flags, format,
min_lod,
max_lod - min_lod + 1,
-1, -1,