diff options
author | Chia-I Wu <[email protected]> | 2010-04-19 20:16:07 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-12-01 11:23:51 +0800 |
commit | 56f02cedfaca9755d2855ec3fe075ccfe5e85c0a (patch) | |
tree | 32a7d754509b4f5c8b5c8a5982e8e71750f90c1a /src/gallium/state_trackers/vega/mask.c | |
parent | 20ce148c305200c760f34d2098d92bc77cb6deee (diff) |
st/vega: Update to latest headers.
Diffstat (limited to 'src/gallium/state_trackers/vega/mask.c')
-rw-r--r-- | src/gallium/state_trackers/vega/mask.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/vega/mask.c b/src/gallium/state_trackers/vega/mask.c index e40df063470..ce81280dd08 100644 --- a/src/gallium/state_trackers/vega/mask.c +++ b/src/gallium/state_trackers/vega/mask.c @@ -38,6 +38,7 @@ #include "util/u_inlines.h" #include "util/u_format.h" #include "util/u_memory.h" +#include "util/u_sampler.h" struct vg_mask_layer { struct vg_object base; @@ -355,7 +356,6 @@ struct vg_mask_layer * mask_layer_create(VGint width, VGint height) pt.height0 = height; pt.depth0 = 1; pt.bind = PIPE_BIND_SAMPLER_VIEW; - pt.compressed = 0; texture = screen->resource_create(screen, &pt); @@ -377,7 +377,7 @@ void mask_layer_destroy(struct vg_mask_layer *layer) struct vg_context *ctx = vg_current_context(); vg_context_remove_object(ctx, VG_OBJECT_MASK, layer); - pipe_resource_release(&layer->texture); + pipe_sampler_view_reference(&layer->sampler_view, NULL); FREE(layer); } |