aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Chew2015-10-27 01:32:02 -0500
committerPuneet Kumar2016-03-17 17:07:11 -0500
commitd6513d7e0f454db11eb469ef9629ff06582a3003 (patch)
tree495da86522138d6af6af9483b10d04ee144ffd6d
parent5afe8e056d6756c8e2ac96279542c3d2daf0742d (diff)
downloadexternal-libdrm-android-cts-7.0_r27.tar.gz
external-libdrm-android-cts-7.0_r27.tar.xz
external-libdrm-android-cts-7.0_r27.zip
drm: add ZBC query methods for nouveauandroid-cts-7.1_r9android-cts-7.1_r8android-cts-7.1_r7android-cts-7.1_r6android-cts-7.1_r5android-cts-7.1_r4android-cts-7.1_r3android-cts-7.1_r23android-cts-7.1_r22android-cts-7.1_r21android-cts-7.1_r20android-cts-7.1_r2android-cts-7.1_r19android-cts-7.1_r18android-cts-7.1_r17android-cts-7.1_r16android-cts-7.1_r15android-cts-7.1_r14android-cts-7.1_r13android-cts-7.1_r12android-cts-7.1_r11android-cts-7.1_r10android-cts-7.1_r1android-cts-7.0_r9android-cts-7.0_r8android-cts-7.0_r7android-cts-7.0_r6android-cts-7.0_r5android-cts-7.0_r4android-cts-7.0_r3android-cts-7.0_r27android-cts-7.0_r26android-cts-7.0_r25android-cts-7.0_r24android-cts-7.0_r23android-cts-7.0_r22android-cts-7.0_r21android-cts-7.0_r20android-cts-7.0_r2android-cts-7.0_r19android-cts-7.0_r18android-cts-7.0_r17android-cts-7.0_r16android-cts-7.0_r15android-cts-7.0_r14android-cts-7.0_r13android-cts-7.0_r12android-cts-7.0_r11android-cts-7.0_r10android-cts-7.0_r1android-7.1.2_r9android-7.1.2_r8android-7.1.2_r6android-7.1.2_r5android-7.1.2_r4android-7.1.2_r36android-7.1.2_r33android-7.1.2_r32android-7.1.2_r30android-7.1.2_r3android-7.1.2_r29android-7.1.2_r28android-7.1.2_r27android-7.1.2_r25android-7.1.2_r24android-7.1.2_r23android-7.1.2_r2android-7.1.2_r19android-7.1.2_r18android-7.1.2_r17android-7.1.2_r16android-7.1.2_r15android-7.1.2_r14android-7.1.2_r13android-7.1.2_r12android-7.1.2_r11android-7.1.2_r10android-7.1.2_r1android-7.1.1_r9android-7.1.1_r8android-7.1.1_r7android-7.1.1_r6android-7.1.1_r58android-7.1.1_r57android-7.1.1_r56android-7.1.1_r55android-7.1.1_r54android-7.1.1_r53android-7.1.1_r52android-7.1.1_r51android-7.1.1_r50android-7.1.1_r49android-7.1.1_r48android-7.1.1_r47android-7.1.1_r46android-7.1.1_r45android-7.1.1_r44android-7.1.1_r43android-7.1.1_r42android-7.1.1_r41android-7.1.1_r40android-7.1.1_r4android-7.1.1_r39android-7.1.1_r38android-7.1.1_r35android-7.1.1_r33android-7.1.1_r32android-7.1.1_r31android-7.1.1_r3android-7.1.1_r28android-7.1.1_r27android-7.1.1_r26android-7.1.1_r25android-7.1.1_r24android-7.1.1_r23android-7.1.1_r22android-7.1.1_r21android-7.1.1_r20android-7.1.1_r2android-7.1.1_r17android-7.1.1_r16android-7.1.1_r15android-7.1.1_r14android-7.1.1_r13android-7.1.1_r12android-7.1.1_r11android-7.1.1_r10android-7.1.1_r1android-7.1.0_r7android-7.1.0_r6android-7.1.0_r5android-7.1.0_r4android-7.1.0_r3android-7.1.0_r2android-7.1.0_r1android-7.0.0_r7android-7.0.0_r6android-7.0.0_r5android-7.0.0_r4android-7.0.0_r35android-7.0.0_r34android-7.0.0_r33android-7.0.0_r32android-7.0.0_r31android-7.0.0_r30android-7.0.0_r3android-7.0.0_r29android-7.0.0_r28android-7.0.0_r27android-7.0.0_r24android-7.0.0_r21android-7.0.0_r19android-7.0.0_r17android-7.0.0_r15android-7.0.0_r14android-7.0.0_r13android-7.0.0_r12android-7.0.0_r1
Add three additional ZBC methods to query color, depth, and table size. Change-Id: Ic590ce149f3d0628f72a8262b5f90a2634de211b Signed-off-by: Vince Hsu <vince.h@nvidia.com>
-rw-r--r--include/drm/nouveau_class.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/drm/nouveau_class.h b/include/drm/nouveau_class.h
index 3c3196ba..8d63877a 100644
--- a/include/drm/nouveau_class.h
+++ b/include/drm/nouveau_class.h
@@ -568,6 +568,9 @@ struct nv50_disp_overlay_v0 {
568#define FERMI_A_ZBC_COLOR 0x00 568#define FERMI_A_ZBC_COLOR 0x00
569#define FERMI_A_ZBC_DEPTH 0x01 569#define FERMI_A_ZBC_DEPTH 0x01
570#define FERMI_A_ZCULL_BIND 0x02 570#define FERMI_A_ZCULL_BIND 0x02
571#define FERMI_A_ZBC_QUERY_COLOR 0x03
572#define FERMI_A_ZBC_QUERY_DEPTH 0x04
573#define FERMI_A_ZBC_QUERY_TABLE_SIZE 0x05
571 574
572struct fermi_a_zbc_color_v0 { 575struct fermi_a_zbc_color_v0 {
573 __u8 version; 576 __u8 version;
@@ -597,6 +600,16 @@ struct fermi_a_zbc_color_v0 {
597 __u32 l2[4]; 600 __u32 l2[4];
598}; 601};
599 602
603struct fermi_a_zbc_query_v0 {
604 __u8 version;
605 __u8 pad03[3];
606 __u32 ds[4];
607 __u32 l2[4];
608 __u32 format;
609 __u32 index;
610 __u32 table_size;
611};
612
600struct fermi_a_zbc_depth_v0 { 613struct fermi_a_zbc_depth_v0 {
601 __u8 version; 614 __u8 version;
602#define FERMI_A_ZBC_DEPTH_V0_FMT_FP32 0x01 615#define FERMI_A_ZBC_DEPTH_V0_FMT_FP32 0x01