diff options
author | Christian König <[email protected]> | 2012-02-27 16:50:01 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2012-03-02 13:14:22 +0100 |
commit | 379f46c8ac50b9b76455b1e62d6d541182339e96 (patch) | |
tree | ff94c6b4e4818f0e5cda5c7bc6099f7ba0fc8dbb /src/gallium/state_trackers/vdpau/bitmap.c | |
parent | 503cfbc7ba536710439e92cc961c2b75d9bb8ff2 (diff) |
st/vdpau: fix default swizzle for Output/Bitmap samplers
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/vdpau/bitmap.c')
-rw-r--r-- | src/gallium/state_trackers/vdpau/bitmap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/vdpau/bitmap.c b/src/gallium/state_trackers/vdpau/bitmap.c index 0b885c8af7c..abd745ae1c6 100644 --- a/src/gallium/state_trackers/vdpau/bitmap.c +++ b/src/gallium/state_trackers/vdpau/bitmap.c @@ -84,8 +84,7 @@ vlVdpBitmapSurfaceCreate(VdpDevice device, return VDP_STATUS_RESOURCES; } - memset(&sv_templ, 0, sizeof(sv_templ)); - u_sampler_view_default_template(&sv_templ, res, res->format); + vlVdpDefaultSamplerViewTemplate(&sv_templ, res); vlsurface->sampler_view = pipe->create_sampler_view(pipe, res, &sv_templ); if (!vlsurface->sampler_view) { pipe_resource_reference(&res, NULL); |