projects
/
profile
/
extras
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1ee0bb
)
lib: export drm_format_to_bpp
author
Imre Deak
<imre.deak@intel.com>
Mon, 29 Jul 2013 14:19:58 +0000
(17:19 +0300)
committer
Imre Deak
<imre.deak@intel.com>
Mon, 29 Jul 2013 15:40:00 +0000
(18:40 +0300)
Needed by the next patch.
Signed-off-by: Imre Deak <imre.deak@intel.com>
lib/drmtest.c
patch
|
blob
|
history
lib/drmtest.h
patch
|
blob
|
history
diff --git
a/lib/drmtest.c
b/lib/drmtest.c
index
083191d
..
29ebaf7
100644
(file)
--- a/
lib/drmtest.c
+++ b/
lib/drmtest.c
@@
-1071,7
+1071,7
@@
unsigned int kmstest_create_fb(int fd, int width, int height, int bpp,
return fb->fb_id;
}
-
static
uint32_t drm_format_to_bpp(uint32_t drm_format)
+uint32_t drm_format_to_bpp(uint32_t drm_format)
{
struct format_desc_struct *f;
diff --git
a/lib/drmtest.h
b/lib/drmtest.h
index
6db639f
..
70dbcc4
100644
(file)
--- a/
lib/drmtest.h
+++ b/
lib/drmtest.h
@@
-166,6
+166,8
@@
const char *kmstest_encoder_type_str(int type);
const char *kmstest_connector_status_str(int type);
const char *kmstest_connector_type_str(int type);
+uint32_t drm_format_to_bpp(uint32_t drm_format);
+
inline static void _do_or_die(const char *function, int line, int ret)
{
if (ret == 0)