pb_buffer: inline 'base' sub-struct
[mesa.git] / src / gallium / winsys / r600 / drm / r600_hw_context.c
index 6c5b4b8953ab58d688aac9b37cdf8b2c89f6463e..5d415ae6348ad72959a80b59d21f99aa1e709420 100644 (file)
@@ -982,7 +982,7 @@ void r600_context_bo_flush(struct r600_context *ctx, unsigned flush_flags,
        } else {
                ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_SURFACE_SYNC, 3, ctx->predicate_drawing);
                ctx->pm4[ctx->pm4_cdwords++] = flush_flags;
-               ctx->pm4[ctx->pm4_cdwords++] = (bo->buf->base.size + 255) >> 8;
+               ctx->pm4[ctx->pm4_cdwords++] = (bo->buf->size + 255) >> 8;
                ctx->pm4[ctx->pm4_cdwords++] = 0x00000000;
                ctx->pm4[ctx->pm4_cdwords++] = 0x0000000A;
                ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_NOP, 0, ctx->predicate_drawing);