From 6fe0453c339b6e894e0ee8d2200e7638a43ed21e Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 11 Jun 2013 19:00:32 +0800 Subject: [PATCH] ilo: access bo size directly buf->bo_size is readily avaiable, no need to go via buf->bo->get_size(). --- src/gallium/drivers/ilo/ilo_gpe_gen6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/ilo/ilo_gpe_gen6.c b/src/gallium/drivers/ilo/ilo_gpe_gen6.c index 6f9a354116a..536dbf8872d 100644 --- a/src/gallium/drivers/ilo/ilo_gpe_gen6.c +++ b/src/gallium/drivers/ilo/ilo_gpe_gen6.c @@ -767,7 +767,7 @@ gen6_emit_3DSTATE_VERTEX_BUFFERS(const struct ilo_dev_info *dev, if (vb->buffer && vb->stride <= 2048) { const struct ilo_buffer *buf = ilo_buffer(vb->buffer); const uint32_t start_offset = vb->buffer_offset; - const uint32_t end_offset = buf->bo->get_size(buf->bo) - 1; + const uint32_t end_offset = buf->bo_size - 1; dw |= vb->stride << BRW_VB0_PITCH_SHIFT; @@ -1040,7 +1040,7 @@ gen6_emit_3DSTATE_INDEX_BUFFER(const struct ilo_dev_info *dev, } /* end_offset must also be aligned */ - end_offset = buf->bo->get_size(buf->bo); + end_offset = buf->bo_size; end_offset -= (end_offset % ib->index_size); /* it is inclusive */ end_offset -= 1; -- 2.30.2