summaryrefslogtreecommitdiff
path: root/lib/igt_fb.h
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2014-06-23 14:53:24 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2014-08-21 14:54:01 +0100
commit378e61e4d872136d9d106bcaae1fcafb5ce1c460 (patch)
treef1744587101d1b15dd2c78fabfdeaf071a2ecc8f /lib/igt_fb.h
parent4d2f511cee49db9b8f1ebf93b9835d871dfb9a9e (diff)
lib: Change the fb creation functions to take fully qualified tiling formats
In the future, we'll need more than X tiling here. So give a full enum instead of bool meaning X-tiled. It's fine to do this change without updating the users just yet as 'true' happens to be I915_TILING_X. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'lib/igt_fb.h')
-rw-r--r--lib/igt_fb.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/igt_fb.h b/lib/igt_fb.h
index f5110d48..4295df9a 100644
--- a/lib/igt_fb.h
+++ b/lib/igt_fb.h
@@ -41,6 +41,8 @@ typedef struct _cairo cairo_t;
#include <drm_fourcc.h>
#include <xf86drmMode.h>
+#include <i915_drm.h>
+
/* helpers to create nice-looking framebuffers */
struct igt_fb {
uint32_t fb_id;
@@ -63,15 +65,16 @@ enum igt_text_align {
align_hcenter = 0x08,
};
-unsigned int igt_create_fb_with_bo_size(int fd, int width, int height,
- uint32_t format, bool tiled,
- struct igt_fb *fb, unsigned bo_size);
+unsigned int
+igt_create_fb_with_bo_size(int fd, int width, int height,
+ uint32_t format, unsigned int tiling,
+ struct igt_fb *fb, unsigned bo_size);
unsigned int igt_create_fb(int fd, int width, int height, uint32_t format,
- bool tiled, struct igt_fb *fb);
+ unsigned int , struct igt_fb *fb);
unsigned int igt_create_color_fb(int fd, int width, int height,
- uint32_t format, bool tiled,
- double r, double g, double b,
- struct igt_fb *fb /* out */);
+ uint32_t format, unsigned int tiling,
+ double r, double g, double b,
+ struct igt_fb *fb /* out */);
void igt_remove_fb(int fd, struct igt_fb *fb);
/* cairo-based painting */