gallium: add B10G10R10A2_UINT format
[mesa.git] / src / gallium / auxiliary / util / u_inlines.h
index aed8ba7df43c096bd97ce1f99c62ecb67c623ddf..ddb81b5b95700df0f9c768507524b83d996886e4 100644 (file)
@@ -303,6 +303,8 @@ pipe_buffer_write(struct pipe_context *pipe,
 
    if (offset == 0 && size == buf->width0) {
       usage |= PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE;
+   } else {
+      usage |= PIPE_TRANSFER_DISCARD_RANGE;
    }
 
    u_box_1d(offset, size, &box);