summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_resource.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-07-14 10:10:35 +0800
committerChia-I Wu <[email protected]>2014-07-15 12:00:10 +0800
commit81d7f33e30e7f54c5b721085057a53f9cd958fe2 (patch)
treedcb13c9b3379545b2c96d4ace2604c35a1b7105c /src/gallium/drivers/ilo/ilo_resource.h
parentd859bdb4b5beee8059d3e5c0f789dd8ae4061c4a (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_resource.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_resource.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/gallium/drivers/ilo/ilo_resource.h b/src/gallium/drivers/ilo/ilo_resource.h
index f11cd94d64b..81563da7a2b 100644
--- a/src/gallium/drivers/ilo/ilo_resource.h
+++ b/src/gallium/drivers/ilo/ilo_resource.h
@@ -112,20 +112,13 @@ struct ilo_texture {
enum pipe_format bo_format;
struct intel_bo *bo;
- /*
- * These are the values passed to or returned from winsys for bo
- * allocation. As such,
- *
- * - width and height are in blocks,
- * - cpp is the block size in bytes, and
- * - stride is the distance in bytes between two block rows.
- */
- int bo_width, bo_height, bo_cpp, bo_stride;
enum intel_tiling_mode tiling;
+ unsigned long bo_stride; /* distance between two block rows in bytes */
+ unsigned long bo_height;
- bool compressed;
unsigned block_width;
unsigned block_height;
+ unsigned block_size;
/* true if the mip level alignments are stricter */
bool halign_8, valign_4;
@@ -140,7 +133,7 @@ struct ilo_texture {
struct {
struct intel_bo *bo;
- int bo_stride;
+ unsigned long bo_stride;
} hiz;
};