diff options
author | Chia-I Wu <[email protected]> | 2014-07-14 10:10:35 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2014-07-15 12:00:10 +0800 |
commit | 81d7f33e30e7f54c5b721085057a53f9cd958fe2 (patch) | |
tree | dcb13c9b3379545b2c96d4ace2604c35a1b7105c /src/gallium/drivers/ilo/ilo_transfer.c | |
parent | d859bdb4b5beee8059d3e5c0f789dd8ae4061c4a (diff) |
ilo: move away from drm_intel_bo_alloc_tiled
We want to know the exact sizes of the BOs, and the driver has the knowledge
to do so. Refactoring of the resource allocation code is needed though.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_transfer.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_transfer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/ilo/ilo_transfer.c b/src/gallium/drivers/ilo/ilo_transfer.c index 456c839c953..4a38e29e076 100644 --- a/src/gallium/drivers/ilo/ilo_transfer.c +++ b/src/gallium/drivers/ilo/ilo_transfer.c @@ -196,7 +196,7 @@ tex_get_box_origin(const struct ilo_texture *tex, assert(x % tex->block_width == 0 && y % tex->block_height == 0); - *mem_x = x / tex->block_width * tex->bo_cpp; + *mem_x = x / tex->block_width * tex->block_size; *mem_y = y / tex->block_height; } @@ -506,7 +506,7 @@ tex_staging_sys_zs_read(struct ilo_context *ilo, d[dst_s8_pos] = s8_src[s8_offset]; d += dst_cpp; - x += tex->bo_cpp; + x += tex->block_size; s8_x++; } @@ -633,7 +633,7 @@ tex_staging_sys_zs_write(struct ilo_context *ilo, s8_dst[s8_offset] = s[src_s8_pos]; s += src_cpp; - x += tex->bo_cpp; + x += tex->block_size; s8_x++; } |