summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-06-11 19:00:32 +0800
committerChia-I Wu <[email protected]>2013-06-12 17:46:52 +0800
commit6fe0453c339b6e894e0ee8d2200e7638a43ed21e (patch)
tree1df1eb299fd47a94590bf9eedbdbdc29709c843f /src/gallium/drivers/ilo
parent3f79188854fd7f63ad1eb0d4ab1fc24117fd0d78 (diff)
ilo: access bo size directly
buf->bo_size is readily avaiable, no need to go via buf->bo->get_size().
Diffstat (limited to 'src/gallium/drivers/ilo')
-rw-r--r--src/gallium/drivers/ilo/ilo_gpe_gen6.c4
1 files 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;