tests/kms_ccs: CCS Clear Color test
v8 cover tests/kms_ccs: CCS Clear Color test
The patch proposes a method to test CCS with clear color capability.
The test paints a solid color on primary fb and a small sprite fb. These are cleared with fast clear feature. A crc is captured and compared against the reference.
v2: Modify _gen9_render_copyfunc to support fast clear (Matt)
Enable fast clear bit on 3D sequence (Matt)
Add helper function to figure out clear color modifier (Matt)
v3: Remove unrelated line additions/removes
v4: Fast clear with color (Imre)
v5: Write raw 32-bit color values to register (Imre)
Require 32-bit color format
v6: Rebase to use batchbuffer without libdrm dependency
v7: Enable clear color (Nanley)
v8: Various cleanups (Imre)
Mika Kahola (2):
tests/kms_ccs: Add debug information on format modifier tests/kms_ccs: CCS Clear Color test
lib/gen8_render.h | 1 + lib/gen9_render.h | 6 +- lib/igt_fb.c | 20 ++++-- lib/igt_fb.h | 3 + lib/intel_batchbuffer.c | 10 +++ lib/intel_batchbuffer.h | 6 ++ lib/rendercopy.h | 4 ++ lib/rendercopy_gen9.c | 146 ++++++++++++++++++++++++++++------------ tests/kms_ccs.c | 82 ++++++++++++++++++---- 9 files changed, 214 insertions(+), 64 deletions(-)
Signature · 6 lines
2.25.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v8 1/2 tests/kms_ccs: Add debug information on format modifier
We could benefit on information on what format modifier is in use when running the test. This in mind, let's add informative string along with the list of ccs modifiers.
--- tests/kms_ccs.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-)
tests/kms_ccs.c +11 -7
@@ -81,12 +81,15 @@ static const uint32_t formats[] = { DRM_FORMAT_P016, }; -static const uint64_t ccs_modifiers[] = { -LOCAL_I915_FORMAT_MOD_Y_TILED_CCS , - LOCAL_I915_FORMAT_MOD_Yf_TILED_CCS, -LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS , -LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC , -LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS , +static const struct { +uint64_t modifier; +const char *str; +} ccs_modifiers[5 ] = { + {LOCAL_I915_FORMAT_MOD_Y_TILED_CCS ,"LOCAL_I915_FORMAT_MOD_Y_TILED_CCS" }, + {LOCAL_I915_FORMAT_MOD_Yf_TILED_CCS,"LOCAL_I915_FORMAT_MOD_Yf_TILED_CCS" }, + {LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS ,"LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS" }, + {LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC ,"LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC" }, + {LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS ,"LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS" }, };static bool check_ccs_planes;
@@ -422,7 +425,8 @@ static int __test_output(data_t *data)for (i =0 ; i <ARRAY_SIZE (ccs_modifiers); i++) {int j; - data->ccs_modifier = ccs_modifiers[i]; + data->ccs_modifier = ccs_modifiers[i].modifier; +igt_debug ("Modifier in use: %s\n" , ccs_modifiers[i].str);for (j =0 ; j <ARRAY_SIZE (formats); j++) { data->format = formats[j]; valid_tests +=test_ccs (data);
Signature · 6 lines
2.25.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v8 2/2 tests/kms_ccs: CCS Clear Color test
In reply to Mika KaholaThe patch proposes a method to test CCS with clear color capability.
The test paints a solid color on primary fb and a small sprite fb. These are cleared with fast clear feature. A crc is captured and compared against the reference.
v2: Modify _gen9_render_copyfunc to support fast clear (Matt)
Enable fast clear bit on 3D sequence (Matt)
Add helper function to figure out clear color modifier (Matt)
v3: Remove unrelated line additions/removes
v4: Fast clear with color (Imre)
v5: Write raw 32-bit color values to register (Imre)
Require 32-bit color format
v6: Rebase to use batchbuffer without libdrm dependency
v7: Enable clear color (Nanley)
v8: Various cleanups (Imre)
--- lib/gen8_render.h | 1 + lib/gen9_render.h | 6 +- lib/igt_fb.c | 20 ++++-- lib/igt_fb.h | 3 + lib/intel_batchbuffer.c | 10 +++ lib/intel_batchbuffer.h | 6 ++ lib/rendercopy.h | 4 ++ lib/rendercopy_gen9.c | 146 ++++++++++++++++++++++++++++------------ tests/kms_ccs.c | 64 ++++++++++++++++-- 9 files changed, 203 insertions(+), 57 deletions(-)
lib/gen8_render.h +1 -0
@@ -26,6 +26,7 @@# define GEN8_VS_FLOATING_POINT_MODE_ALTERNATE (1 << 16) +#define GEN8_3DSTATE_FAST_CLEAR_ENABLE (1 << 8)#define GEN8_3DSTATE_VIEWPORT_STATE_POINTERS_SF_CLIP \ GEN4_3D(3, 0, 0x21)#define GEN8_3DSTATE_PS_BLEND GEN4_3D(3, 0, 0x4d)
lib/gen9_render.h +5 -1
@@ -127,7 +127,11 @@ struct gen9_surface_state { } ss9;struct { -uint32_t aux_base_addr; +uint32_t aux_base_addr:20 ; +uint32_t procedual_texture:1 ; +uint32_t clearvalue_addr_enable:1 ; +uint32_t quilt_height:5 ; +uint32_t quilt_width:5 ; } ss10;struct {
lib/igt_fb.c +14 -6
@@ -2141,9 +2141,10 @@ static int yuv_semiplanar_bpp(uint32_t drm_format) } } -static struct intel_buf *create_buf (struct fb_blit_upload *blit, -const struct igt_fb *fb, -const char *name) +struct intel_buf * +igt_fb_create_intel_buf (int fd,struct buf_ops *bops, +const struct igt_fb *fb, +const char *name) {struct intel_buf *buf;uint32_t bo_name, handle, compression;
@@ -2169,10 +2170,10 @@ static struct intel_buf *create_buf(struct fb_blit_upload *blit, compression =I915_COMPRESSION_NONE ; } - bo_name =gem_flink (blit->fd, fb->gem_handle); - handle =gem_open (blit->fd, bo_name); + bo_name =gem_flink (fd, fb->gem_handle); + handle =gem_open (fd, bo_name); - buf = intel_buf_create_using_handle(blit->bops, handle, + buf = intel_buf_create_using_handle(bops, handle, fb->width, fb->height, fb->plane_bpp[0], 0, igt_fb_mod_to_tiling(fb->modifier),
@@ -2213,6 +2214,13 @@ static struct intel_buf *create_buf(struct fb_blit_upload *blit,return buf; } +static struct intel_buf *create_buf (struct fb_blit_upload *blit, +const struct igt_fb *fb, +const char *name) +{ +return igt_fb_create_intel_buf (blit->fd, blit->bops, fb, name); +} +static void fini_buf (struct intel_buf *buf) {intel_buf_destroy (buf);
lib/igt_fb.h +3 -0
@@ -39,6 +39,7 @@#include "igt_color_encoding.h" #include "igt_debugfs.h" +#include "intel_bufops.h" /* * Internal format to denote a buffer compatible with pixman's
@@ -129,6 +130,8 @@ igt_create_fb_with_bo_size(int fd, int width, int height,enum igt_color_range color_range, struct igt_fb *fb, uint64_t bo_size, unsigned bo_stride); +struct intel_buf *igt_fb_create_intel_buf (int fd,struct buf_ops *bops, +const struct igt_fb *fb,const char *name);unsigned int igt_create_fb (int fd,int width,int height,uint32_t format,uint64_t modifier,struct igt_fb *fb); unsigned int igt_create_color_fb(int fd, int width, int height,
lib/intel_batchbuffer.c +10 -0
@@ -1096,6 +1096,16 @@ igt_vebox_copyfunc_t igt_get_vebox_copyfunc(int devid)return copy; } +igt_render_clearfunc_t igt_get_render_clearfunc (int devid) +{ +igt_render_clearfunc_t clear =NULL ; + +if (IS_GEN12 (devid)) + clear = gen12_render_clearfunc; + +return clear; +} +/** * igt_get_media_fillfunc: * @devid: pci device id
lib/intel_batchbuffer.h +6 -0
@@ -374,6 +374,12 @@ typedef void (*igt_vebox_copyfunc_t)(struct intel_bb *ibb,igt_vebox_copyfunc_t igt_get_vebox_copyfunc (int devid); +typedef void (*igt_render_clearfunc_t )(struct intel_bb *ibb, +struct intel_buf *dst,unsigned int dst_x,unsigned int dst_y, +unsigned int width,unsigned int height, +float cc_color[4 ]); +igt_render_clearfunc_t igt_get_render_clearfunc (int devid); +/** * igt_fillfunc_t: * @i915: drm fd
lib/rendercopy.h +4 -0
@@ -23,6 +23,10 @@ static inline void emit_vertex_normalized(struct intel_bb *ibb,intel_bb_out (ibb, u.ui); } +void gen12_render_clearfunc (struct intel_bb *ibb, +struct intel_buf *dst,unsigned int dst_x,unsigned int dst_y, +unsigned int width,unsigned int height, +float clear_color[4 ]); void gen12_render_copyfunc(struct intel_bb *ibb, struct intel_buf *src, uint32_t src_x, uint32_t src_y, uint32_t width, uint32_t height,
lib/rendercopy_gen9.c +102 -44
235 lines not on this page · raw message
tests/kms_ccs.c +58 -6
106 lines not on this page · raw message
Signature · 6 lines
2.25.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Quoted 7 lines · Mika Kahola
The patch proposes a method to test CCS with clear color capability.
The test paints a solid color on primary fb and a small sprite fb. These are cleared with fast clear feature. A crc is captured and compared against the reference.
Quoted 10 lines
v2: Modify
_gen9_render_copyfuncto support fast clear (Matt)
Enable fast clear bit on 3D sequence (Matt)
Add helper function to figure out clear color modifier (Matt)
v3: Remove unrelated line additions/removes
v4: Fast clear with color (Imre)
v5: Write raw 32-bit color values to register (Imre)
Require 32-bit color format
v6: Rebase to use batchbuffer without libdrm dependency
v7: Enable clear color (Nanley)
v8: Various cleanups (Imre)
Too many changes in one patch, please split them to
- lib/intel_aux_pgtable: Add support for creating pagetables for a single buffer
- lib/rendercopy_gen9: Add support for fast clear
- kms_ccs: Add RC-CC subtest
Quoted 115 lines
Signed-off-by Mika Kahola <[email protected]>--- lib/gen8_render.h | 1 + lib/gen9_render.h | 6 +- lib/igt_fb.c | 20 ++++-- lib/igt_fb.h | 3 + lib/intel_batchbuffer.c | 10 +++ lib/intel_batchbuffer.h | 6 ++ lib/rendercopy.h | 4 ++ lib/rendercopy_gen9.c | 146 ++++++++++++++++++++++++++++------------ tests/kms_ccs.c | 64 ++++++++++++++++-- 9 files changed, 203 insertions(+), 57 deletions(-)lib/gen8_render.h +1
-0@@ -26,6 +26,7 @@# define GEN8_VS_FLOATING_POINT_MODE_ALTERNATE (1 << 16) +#define GEN8_3DSTATE_FAST_CLEAR_ENABLE (1 << 8)#define GEN8_3DSTATE_VIEWPORT_STATE_POINTERS_SF_CLIP \ GEN4_3D(3, 0, 0x21)#define GEN8_3DSTATE_PS_BLEND GEN4_3D(3, 0, 0x4d)lib/gen9_render.h +5
-1@@ -127,7 +127,11 @@ struct gen9_surface_state { } ss9;struct { -uint32_t aux_base_addr; +uint32_t aux_base_addr:20 ; +uint32_t procedual_texture:1 ; +uint32_t clearvalue_addr_enable:1 ; +uint32_t quilt_height:5 ; +uint32_t quilt_width:5 ; } ss10;struct {lib/igt_fb.c +14
-6@@ -2141,9 +2141,10 @@ static int yuv_semiplanar_bpp(uint32_t drm_format) } } -static struct intel_buf *create_buf (struct fb_blit_upload *blit, -const struct igt_fb *fb, -const char *name) +struct intel_buf * +igt_fb_create_intel_buf (int fd,struct buf_ops *bops, +const struct igt_fb *fb, +const char *name) {struct intel_buf *buf;uint32_t bo_name, handle, compression;@@ -2169,10 +2170,10 @@ static struct intel_buf *create_buf(struct fb_blit_upload *blit, compression =I915_COMPRESSION_NONE ; } - bo_name =gem_flink (blit->fd, fb->gem_handle); - handle =gem_open (blit->fd, bo_name); + bo_name =gem_flink (fd, fb->gem_handle); + handle =gem_open (fd, bo_name); - buf = intel_buf_create_using_handle(blit->bops, handle, + buf = intel_buf_create_using_handle(bops, handle, fb->width, fb->height, fb->plane_bpp[0], 0, igt_fb_mod_to_tiling(fb->modifier),@@ -2213,6 +2214,13 @@ static struct intel_buf *create_buf(struct fb_blit_upload *blit,return buf; } +static struct intel_buf *create_buf (struct fb_blit_upload *blit, +const struct igt_fb *fb, +const char *name) +{ +return igt_fb_create_intel_buf (blit->fd, blit->bops, fb, name); +} +static void fini_buf (struct intel_buf *buf) {intel_buf_destroy (buf);lib/igt_fb.h +3
-0@@ -39,6 +39,7 @@#include "igt_color_encoding.h" #include "igt_debugfs.h" +#include "intel_bufops.h" /* * Internal format to denote a buffer compatible with pixman's @@ -129,6 +130,8 @@ igt_create_fb_with_bo_size(int fd, int width, int height,enum igt_color_range color_range, struct igt_fb *fb, uint64_t bo_size, unsigned bo_stride); +struct intel_buf *igt_fb_create_intel_buf (int fd,struct buf_ops *bops, +const struct igt_fb *fb,const char *name);unsigned int igt_create_fb (int fd,int width,int height,uint32_t format,uint64_t modifier,struct igt_fb *fb); unsigned int igt_create_color_fb(int fd, int width, int height,lib/intel_batchbuffer.c +0
-0
lib/intel_batchbuffer.c igt_vebox_copyfunc_t igt_get_vebox_copyfunc(int devid) · line 1101
Quoted 6 lines
lib/intel_batchbuffer.c +3
-0@@ -1096,6 +1096,16 @@ igt_vebox_copyfunc_t igt_get_vebox_copyfunc(int devid)return copy; } +igt_render_clearfunc_t igt_get_render_clearfunc (int devid) +{ +igt_render_clearfunc_t clear =NULL ;
No need for a variable.
Quoted 48 lines
lib/intel_batchbuffer.c +7
-0+ +if (IS_GEN12 (devid)) + clear = gen12_render_clearfunc; + +return clear; +} +/** * igt_get_media_fillfunc: * @devid: pci device id lib/intel_batchbuffer.h +6
-0@@ -374,6 +374,12 @@ typedef void (*igt_vebox_copyfunc_t)(struct intel_bb *ibb,igt_vebox_copyfunc_t igt_get_vebox_copyfunc (int devid); +typedef void (*igt_render_clearfunc_t )(struct intel_bb *ibb, +struct intel_buf *dst,unsigned int dst_x,unsigned int dst_y, +unsigned int width,unsigned int height, +float cc_color[4 ]); +igt_render_clearfunc_t igt_get_render_clearfunc (int devid); +/** * igt_fillfunc_t: * @i915: drm fd lib/rendercopy.h +4
-0@@ -23,6 +23,10 @@ static inline void emit_vertex_normalized(struct intel_bb *ibb,intel_bb_out (ibb, u.ui); } +void gen12_render_clearfunc (struct intel_bb *ibb, +struct intel_buf *dst,unsigned int dst_x,unsigned int dst_y, +unsigned int width,unsigned int height, +float clear_color[4 ]); void gen12_render_copyfunc(struct intel_bb *ibb, struct intel_buf *src, uint32_t src_x, uint32_t src_y, uint32_t width, uint32_t height,lib/rendercopy_gen9.c +0
-0@@ -188,20 +188,12 @@ gen8_bind_buf(struct intel_bb *ibb, const struct intel_buf *buf, int is_dst) { buf->ccs[0].offset,
lib/rendercopy_gen9.c gen8_bind_buf(struct intel_bb *ibb, const struct intel_buf *buf, int is_dst) { · line 192
Quoted 10 lines
lib/rendercopy_gen9.c +2
-6intel_bb_offset (ibb) +4 *10 , buf->addr.offset); - ss->ss10.aux_base_addr = (address + buf->ccs[0 ].offset); - ss->ss11.aux_base_addr_hi = (address + buf->ccs[0 ].offset) >>32 ; - } - -if (buf->cc.offset) { -igt_assert (buf->compression ==I915_COMPRESSION_RENDER ); +if (buf->cc.offset) { + ss->ss10.aux_base_addr = (address + buf->ccs[0 ].offset);
aux needs to get setup for the !buf->cc.offset case as well.
lib/rendercopy_gen9.c gen8_bind_buf(struct intel_bb *ibb, const struct intel_buf *buf, int is_dst) { · line 193
Quoted 1 line
lib/rendercopy_gen9.c +1
-0+ ss->ss10.clearvalue_addr_enable =1 ;
This will also need to get or'd into the aux addr relocation delta.
lib/rendercopy_gen9.c gen8_bind_buf(struct intel_bb *ibb, const struct intel_buf *buf, int is_dst) { · line 204
Quoted 9 lines
lib/rendercopy_gen9.c +1
-7+ ss->ss11.aux_base_addr_hi = (address + buf->ccs[0 ].offset) >>32 ; - address =intel_bb_offset_reloc_with_delta (ibb, buf->handle, - read_domain, write_domain, - buf->cc.offset, -intel_bb_offset (ibb) +4 *12 , - buf->addr.offset); - ss->ss12.clear_address = address + buf->cc.offset; - ss->ss13.clear_address_hi = (address + buf->cc.offset) >>32 ;
The above shouldn't be removed.
Quoted 16 lines
lib/rendercopy_gen9.c +4
-1+ } }return intel_bb_ptr_add_return_prev_offset (ibb,sizeof (*ss));@@ -218,7 +210,9 @@ gen8_bind_surfaces(struct intel_bb *ibb, binding_table_offset =intel_bb_ptr_add_return_prev_offset (ibb,32 ); binding_table[0 ] =gen8_bind_buf (ibb, dst,1 ); - binding_table[1 ] =gen8_bind_buf (ibb, src,0 ); + +if (src !=NULL ) + binding_table[1 ] =gen8_bind_buf (ibb, src,1 );return binding_table_offset; }
lib/rendercopy_gen9.c gen7_fill_vertex_buffer_data(struct intel_bb *ibb, · line 270
Quoted 3 lines
lib/rendercopy_gen9.c +0
-0@@ -274,16 +268,39 @@ gen7_fill_vertex_buffer_data(struct intel_bb *ibb, offset =intel_bb_offset (ibb);emit_vertex_2s (ibb, dst_x + width, dst_y + height);
Missing scaling for the fast clear case.
lib/rendercopy_gen9.c gen7_fill_vertex_buffer_data(struct intel_bb *ibb, · line 275
Quoted 7 lines
lib/rendercopy_gen9.c +5
-2-emit_vertex_normalized (ibb, src_x + width,intel_buf_width (src)); -emit_vertex_normalized (ibb, src_y + height,intel_buf_height (src)); + +if (src ==NULL ) { + dst_x /=64 ; + dst_y /=16 ; + }
Correcty you need to scale the whole sum of dst_y + height for instance, also rounding up when needed. Probably better to emit all the vertices in one if branch for the copy case and all the scaled vertices and 0 place holders for the fast clear case in the else branch. Please also add a comment that src == NULL is a fast clear.
lib/rendercopy_gen9.c gen7_fill_vertex_buffer_data(struct intel_bb *ibb, · line 281
Quoted 6 lines
lib/rendercopy_gen9.c +6
-0+ +if (src !=NULL ) { +emit_vertex_normalized (ibb, src_x + width,intel_buf_width (src)); +emit_vertex_normalized (ibb, src_y + height,intel_buf_height (src)); + }else { +emit_vertex_normalized (ibb,0 ,0 );
Just emit_vertex(ibb, 0);
Quoted 39 lines
lib/rendercopy_gen9.c +19
-5+emit_vertex_normalized (ibb,0 ,0 ); + }emit_vertex_2s (ibb, dst_x, dst_y + height); -emit_vertex_normalized (ibb, src_x,intel_buf_width (src)); -emit_vertex_normalized (ibb, src_y + height,intel_buf_height (src)); + +if (src !=NULL ) { +emit_vertex_normalized (ibb, src_x,intel_buf_width (src)); +emit_vertex_normalized (ibb, src_y + height,intel_buf_height (src)); + }else { +emit_vertex_normalized (ibb,0 ,0 ); +emit_vertex_normalized (ibb,0 ,0 ); + }emit_vertex_2s (ibb, dst_x, dst_y); -emit_vertex_normalized (ibb, src_x,intel_buf_width (src)); -emit_vertex_normalized (ibb, src_y,intel_buf_height (src)); + +if (src !=NULL ) { +emit_vertex_normalized (ibb, src_x,intel_buf_width (src)); +emit_vertex_normalized (ibb, src_y,intel_buf_height (src)); + }else { +emit_vertex_normalized (ibb,0 ,0 ); +emit_vertex_normalized (ibb,0 ,0 ); + }return offset; }@@ -729,7 +746,7 @@ gen8_emit_sf(struct intel_bb *ibb) }static void -gen8_emit_ps (struct intel_bb *ibb,uint32_t kernel) { +gen8_emit_ps (struct intel_bb *ibb,uint32_t kernel,bool fast_clear) {const int max_threads =63 ;intel_bb_out (ibb,GEN6_3DSTATE_WM | (2 -2 ));
lib/rendercopy_gen9.c gen8_emit_ps(struct intel_bb *ibb, uint32_t kernel) { · line 775
Quoted 8 lines
lib/rendercopy_gen9.c +3
-2@@ -753,10 +770,16 @@ gen8_emit_ps(struct intel_bb *ibb, uint32_t kernel) {intel_bb_out (ibb,GEN7_3DSTATE_PS | (12 -2 ));intel_bb_out (ibb, kernel);intel_bb_out (ibb,0 );/* kernel hi */ -intel_bb_out (ibb,1 <<GEN6_3DSTATE_WM_SAMPLER_COUNT_SHIFT | -2 <<GEN6_3DSTATE_WM_BINDING_TABLE_ENTRY_COUNT_SHIFT ); + +if (fast_clear) +intel_bb_out (ibb,1 )
1 << GEN6_3DSTATE_WM_BINDING_TABLE_ENTRY_COUNT_SHIFT
lib/rendercopy_gen9.c gen8_emit_ps(struct intel_bb *ibb, uint32_t kernel) { · line 782
Quoted 7 lines
lib/rendercopy_gen9.c +5
-0+else +intel_bb_out (ibb,1 <<GEN6_3DSTATE_WM_SAMPLER_COUNT_SHIFT | +2 <<GEN6_3DSTATE_WM_BINDING_TABLE_ENTRY_COUNT_SHIFT ); +intel_bb_out (ibb,0 );/* scratch space stuff */ intel_bb_out (ibb,0 );/* scratch hi */ +
Extra w/s.
lib/rendercopy_gen9.c gen8_emit_ps(struct intel_bb *ibb, uint32_t kernel) { · line 792
Quoted 9 lines
lib/rendercopy_gen9.c +2
-0intel_bb_out (ibb, (max_threads -1 ) <<GEN8_3DSTATE_PS_MAX_THREADS_SHIFT |GEN6_3DSTATE_WM_16_DISPATCH_ENABLE );intel_bb_out (ibb,6 <<GEN6_3DSTATE_WM_DISPATCH_START_GRF_0_SHIFT );@@ -765,6 +788,9 @@ gen8_emit_ps(struct intel_bb *ibb, uint32_t kernel) {intel_bb_out (ibb,0 );// kernel 2 intel_bb_out (ibb,0 );/* kernel 2 hi */ +if (fast_clear) +intel_bb_out (ibb,GEN8_3DSTATE_FAST_CLEAR_ENABLE );
Still in the wrong dword, should be or'd to the
max_threads/wm_16_dispatch enabling value.
Quoted 22 lines
lib/rendercopy_gen9.c +6
-9+intel_bb_out (ibb,GEN8_3DSTATE_PS_BLEND | (2 -2 ));intel_bb_out (ibb,GEN8_PS_BLEND_HAS_WRITEABLE_RT );@@ -876,27 +902,31 @@ static void gen8_emit_primitive(struct intel_bb *ibb, uint32_t offset)#define BATCH_STATE_SPLIT 2048 static -void _gen9_render_copyfunc (struct intel_bb *ibb, -struct intel_buf *src, -unsigned int src_x,unsigned int src_y, -unsigned int width,unsigned int height, -struct intel_buf *dst, -unsigned int dst_x,unsigned int dst_y, -struct intel_buf *aux_pgtable_buf, -const uint32_t ps_kernel[][4 ], -uint32_t ps_kernel_size) +void _gen9_render_op(struct intel_bb *ibb, + struct intel_buf *src, + unsigned int src_x, unsigned int src_y, + unsigned int width, unsigned int height, + struct intel_buf *dst,
lib/rendercopy_gen9.c static void gen8_emit_primitive(struct intel_bb *ibb, uint32_t offset) · line 919
Quoted 10 lines
lib/rendercopy_gen9.c +5
-0+ unsigned int dst_x, unsigned int dst_y, + struct intel_buf *aux_pgtable_buf, + const uint32_t ps_kernel[][4], + uint32_t ps_kernel_size) { uint32_t ps_sampler_state, ps_kernel_off, ps_binding_table;uint32_t scissor_state;uint32_t vertex_buffer;uint32_t aux_pgtable_state; +bool fast_clear = src !=NULL ;
bool fast_clear = !src;
Quoted 16 lines
lib/rendercopy_gen9.c +5
-2-igt_assert (src->bpp == dst->bpp); +if (src !=NULL ) +igt_assert (src->bpp == dst->bpp);intel_bb_flush_render (ibb);intel_bb_add_intel_buf (ibb, dst, true); -intel_bb_add_intel_buf (ibb, src, false); + +if (!fast_clear) +intel_bb_add_intel_buf (ibb, src, false);intel_bb_ptr_set (ibb,BATCH_STATE_SPLIT );
lib/rendercopy_gen9.c void _gen9_render_copyfunc(struct intel_bb *ibb, · line 982
Quoted 4 lines
lib/rendercopy_gen9.c +1
-0@@ -949,11 +979,13 @@ void _gen9_render_copyfunc(struct intel_bb *ibb,intel_bb_out (ibb,0 );intel_bb_out (ibb,0 ); +gen8_emit_ps (ibb, ps_kernel_off, fast_clear);
This isn't needed.
Quoted 51 lines
lib/rendercopy_gen9.c +11
-10+gen7_emit_clip (ibb);gen8_emit_sf (ibb); -gen8_emit_ps (ibb, ps_kernel_off); +gen8_emit_ps (ibb, ps_kernel_off, fast_clear);intel_bb_out (ibb,GEN7_3DSTATE_BINDING_TABLE_POINTERS_PS );intel_bb_out (ibb, ps_binding_table);@@ -991,9 +1023,9 @@ void gen9_render_copyfunc(struct intel_bb *ibb, unsigned int dst_x, unsigned int dst_y) { -_gen9_render_copyfunc (ibb ,src ,src_x ,src_y , -width ,height ,dst ,dst_x ,dst_y ,NULL , - ps_kernel_gen9, sizeof(ps_kernel_gen9)); +_gen9_render_op (ibb ,src ,src_x ,src_y , +width ,height ,dst ,dst_x ,dst_y ,NULL , + ps_kernel_gen9, sizeof(ps_kernel_gen9)); } void gen11_render_copyfunc(struct intel_bb *ibb,@@ -1003,9 +1035,9 @@ void gen11_render_copyfunc(struct intel_bb *ibb,struct intel_buf *dst, unsigned int dst_x, unsigned int dst_y) { -_gen9_render_copyfunc (ibb ,src ,src_x ,src_y , -width ,height ,dst ,dst_x ,dst_y ,NULL , - ps_kernel_gen11, sizeof(ps_kernel_gen11)); +_gen9_render_op (ibb ,src ,src_x ,src_y , +width ,height ,dst ,dst_x ,dst_y ,NULL , + ps_kernel_gen11, sizeof(ps_kernel_gen11)); } void gen12_render_copyfunc(struct intel_bb *ibb,@@ -1019,11 +1051,37 @@ void gen12_render_copyfunc(struct intel_bb *ibb,gen12_aux_pgtable_init (&pgtable_info, ibb, src, dst); -_gen9_render_copyfunc (ibb, src, src_x, src_y, - width, height, dst, dst_x, dst_y, - pgtable_info.pgtable_buf, +_gen9_render_op (ibb, src, src_x, src_y, + width, height, dst, dst_x, dst_y, + pgtable_info.pgtable_buf, gen12_render_copy,sizeof (gen12_render_copy));gen12_aux_pgtable_cleanup (ibb, &pgtable_info); }
lib/rendercopy_gen9.c void gen12_render_copyfunc(struct intel_bb *ibb, · line 1071
Quoted 10 lines
lib/rendercopy_gen9.c +10
-0+ +void gen12_render_clearfunc (struct intel_bb *ibb, +struct intel_buf *dst, +unsigned int dst_x,unsigned int dst_y, +unsigned int width,unsigned int height, +float clear_color[4 ]) +{ +struct aux_pgtable_info pgtable_info = { }; + +gen12_aux_pgtable_init (&pgtable_info, ibb,NULL , dst);
Still missing the required change for this in gen12_aux_pgtable_init().
lib/rendercopy_gen9.c void gen12_render_copyfunc(struct intel_bb *ibb, · line 1078
Quoted 7 lines
lib/rendercopy_gen9.c +7
-0+ +/* BSpec 21136 */ +intel_bb_ptr_set (ibb, dst->cc.offset); +intel_bb_out (ibb, clear_color[0 ]); +intel_bb_out (ibb, clear_color[2 ]); +intel_bb_out (ibb, clear_color[1 ]); +intel_bb_out (ibb, clear_color[4 ]);
This is still not ok, please check the previous review.
Quoted 15 lines
lib/rendercopy_gen9.c +9
-0+ +_gen9_render_op (ibb,NULL ,0 ,0 , + width, height, dst, dst_x, dst_y, + pgtable_info.pgtable_buf, + gen12_render_copy, +sizeof (gen12_render_copy)); + +gen12_aux_pgtable_cleanup (ibb, &pgtable_info); +}tests/kms_ccs.c +0
-0@@ -120,6 +120,16 @@ static void addfb_init(struct igt_fb *fb, struct drm_mode_fb_cmd2 *f) }
tests/kms_ccs.c static void addfb_init(struct igt_fb *fb, struct drm_mode_fb_cmd2 *f) · line 130
Quoted 10 lines
tests/kms_ccs.c +8
-0} +static bool is_ccs_cc_modifier (uint64_t modifier) +{ +switch (modifier) { +case LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC : +return true; +default : +return false; + }
No need for a switch for this.
tests/kms_ccs.c static void check_ccs_plane(int drm_fd, igt_fb_t *fb, int plane) · line 148
Quoted 11 lines
tests/kms_ccs.c +4
-0+} +/* * The CCS planes of compressed framebuffers contain non-zero bytes if the * engine compressed effectively the framebuffer. The actual encoding of these @@ -134,6 +144,8 @@ static void check_ccs_plane(int drm_fd, igt_fb_t *fb, int plane)void *ccs_p;size_t ccs_size;int i; +uint32_t cc_map[4 ]; +uint32_t native_color;
We don't want to check these for every plane, so needs a check_ccs_cc_plane() func and called from check_all_ccs_planes() only if plane == igt_fb_is_gen12_ccs_cc_plane() .
tests/kms_ccs.c static void check_ccs_plane(int drm_fd, igt_fb_t *fb, int plane) · line 166
Quoted 11 lines
tests/kms_ccs.c +4
-0ccs_size = fb->strides[plane] * fb->plane_height[plane];igt_assert (ccs_size);@@ -148,6 +160,17 @@ static void check_ccs_plane(int drm_fd, igt_fb_t *fb, int plane)if (*(uint32_t *)(ccs_p + i))break ; +memcpy (cc_map, map + fb->offsets[2 ],4 *sizeof (uint32_t )); +igt_assert (colors->r == cc_map[0 ] && + colors->g == cc_map[1 ] && + colors->b == cc_map[2 ]);
This will do an incorrect type conversion, need to compare float vs. float. You can use for instance a float/uint32_t union map for both the above and the native_color check.
Using the global colors ptr here is too arbitrary, it needs to get passed in a proper func param.
tests/kms_ccs.c static void check_ccs_plane(int drm_fd, igt_fb_t *fb, int plane) · line 172
Quoted 6 lines
tests/kms_ccs.c +6
-0+ + native_color = (uint8_t )(colors->r *0xff ) <<16 | + (uint8_t )(colors->g *0xff ) <<8 | + (uint8_t )(colors->b *0xff ); + +igt_assert (native_color == cc_map[3 ]);
It's cc_map[4] that contains the required value.
Quoted 38 lines
tests/kms_ccs.c +11
-6+munmap (map, fb->size); igt_assert_f(i < ccs_size,@@ -160,8 +183,7 @@ static void check_all_ccs_planes(int drm_fd, igt_fb_t *fb)int i;for (i =0 ; i < fb->num_planes; i++) { -if (igt_fb_is_ccs_plane (fb, i) && - !igt_fb_is_gen12_ccs_cc_plane (fb, i)) +if (igt_fb_is_ccs_plane (fb, i))check_ccs_plane (drm_fd, fb, i); } }@@ -176,6 +198,11 @@ static int get_ccs_plane_index(uint32_t format)return index; } +static struct intel_buf *fast_clear_fb (int drm_fd,struct buf_ops *bops,struct igt_fb *fb,const char *name) +{ +return igt_fb_create_intel_buf (drm_fd, bops, fb, name); +} +static void generate_fb (data_t *data,struct igt_fb *fb,int width,int height,enum test_fb_flags fb_flags)@@ -246,10 +273,31 @@ static void generate_fb(data_t *data, struct igt_fb *fb,if (!(data->flags &TEST_BAD_PIXEL_FORMAT )) {int c = !!data->plane; - cr =igt_get_cairo_ctx (data->drm_fd, fb); -igt_paint_color (cr,0 ,0 , width, height, - colors[c].r, colors[c].g, colors[c].b); -igt_put_cairo_ctx (cr); +if (is_ccs_cc_modifier (modifier)) { +float cc_color[4 ] = {colors[0 ].r, colors[0 ].g, colors[0 ].b,1.0 }; +struct intel_bb *ibb =intel_bb_create (data->drm_fd,4096 ); +struct buf_ops *bops =buf_ops_create (data->drm_fd);
tests/kms_ccs.c static void generate_fb(data_t *data, struct igt_fb *fb, · line 289
Quoted 10 lines
tests/kms_ccs.c +10
-0+struct intel_buf *dst =fast_clear_fb (data->drm_fd, bops, fb,"fast clear dst" ); + +gem_set_domain (data->drm_fd, fb->gem_handle, +I915_GEM_DOMAIN_GTT ,I915_GEM_DOMAIN_GTT ); + +/* +* We expect the kernel to limit the max fb +* size/stride to something that can still +* rendered with the blitter/render engine. +*/
The above is a left-over comment.
tests/kms_ccs.c static void generate_fb(data_t *data, struct igt_fb *fb, · line 293
Quoted 4 lines
tests/kms_ccs.c +4
-0+gen12_render_clearfunc (ibb, dst,0 ,0 , + fb->width, + fb->height, + cc_color);
igt_render_clearfunc_t fast_clear = igt_get_render_clearfunc(); fast_clear(...)
tests/kms_ccs.c static void generate_fb(data_t *data, struct igt_fb *fb, · line 294
Quoted 1 line
tests/kms_ccs.c +1
-0+intel_bb_reset (ibb, true);
Instead of reset, we need an intel_bb_sync()/intel_bb_destroy(). Also missing cleanup for bops and dst.
Please make all the above setup/cleanup be part of fast_clear_fb() as well.
tests/kms_ccs.c static void generate_fb(data_t *data, struct igt_fb *fb, · line 299
Quoted 5 lines
tests/kms_ccs.c +5
-0+ }else { + cr =igt_get_cairo_ctx (data->drm_fd, fb); +igt_paint_color (cr,0 ,0 , width, height, + colors[c].r, colors[c].g, colors[c].b); +igt_put_cairo_ctx (cr);
Wrong indent.
tests/kms_ccs.c static bool try_config(data_t *data, enum test_fb_flags fb_flags, · line 400
Quoted 9 lines
tests/kms_ccs.c +2
-0+ } } ret =drmIoctl (data->drm_fd,LOCAL_DRM_IOCTL_MODE_ADDFB2 , &f);@@ -349,6 +397,10 @@ static bool try_config(data_t *data, enum test_fb_flags fb_flags,if (data->flags &TEST_BAD_ROTATION_90 )igt_plane_set_rotation (primary,IGT_ROTATION_90 ); + if (!is_ccs_cc_modifier(data->ccs_modifier)
if (is_ccs_cc() && format != XRGB8888)
Quoted 9 lines
tests/kms_ccs.c +3
-0+ && data->format != DRM_FORMAT_XRGB8888) +return false; + ret =igt_display_try_commit2 (display, commit);if (data->flags &TEST_BAD_ROTATION_90 ) {igt_assert_eq (ret, -EINVAL );Signature · 1 line
2.25.1
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Quoted 25 lines
-----Original Message-----
From: Imre Deak <[email protected]>
Sent: Wednesday, November 11, 2020 6:38 PM
To: Kahola, Mika <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH i-g-t v8 2/2] tests/kms_ccs: CCS Clear Color testQuoted 6 lines · Mika Kahola
The patch proposes a method to test CCS with clear color capability.
The test paints a solid color on primary fb and a small sprite fb. These are cleared with fast clear feature. A crc is captured and compared against the reference.
Quoted 10 lines
v2: Modify
_gen9_render_copyfuncto support fast clear (Matt)
Enable fast clear bit on 3D sequence (Matt)
Add helper function to figure out clear color modifier (Matt)
v3: Remove unrelated line additions/removes
v4: Fast clear with color (Imre)
v5: Write raw 32-bit color values to register (Imre)
Require 32-bit color format
v6: Rebase to use batchbuffer without libdrm dependency
v7: Enable clear color (Nanley)
v8: Various cleanups (Imre)
Quoted 6 lines
Too many changes in one patch, please split them to
-
lib/intel_aux_pgtable: Add support for creating pagetables for a single buffer
-lib/rendercopy_gen9: Add support for fast clear
-kms_ccs: Add RC-CC subtest
Ok, I will split the patches into smaller chunks. Thanks!
Cheers,
Mika
Quoted 649 lines
lib/igt_fb.c static int yuv_semiplanar_bpp(uint32_t
Quoted 49 lines
Signed-off-by Mika Kahola <[email protected]>--- lib/gen8_render.h | 1 + lib/gen9_render.h | 6 +- lib/igt_fb.c | 20 ++++-- lib/igt_fb.h | 3 + lib/intel_batchbuffer.c | 10 +++ lib/intel_batchbuffer.h | 6 ++ lib/rendercopy.h | 4 ++ lib/rendercopy_gen9.c | 146 ++++++++++++++++++++++++++++------------ tests/kms_ccs.c | 64 ++++++++++++++++-- 9 files changed, 203 insertions(+), 57 deletions(-)lib/gen8_render.h index renamed from lib/gen8_render.h +0
-0
31dc01bc..1b0f527e100644lib/gen8_render.h +1
-0@@ -26,6 +26,7 @@# define GEN8_VS_FLOATING_POINT_MODE_ALTERNATE (1 << 16) +#define GEN8_3DSTATE_FAST_CLEAR_ENABLE (1 << 8)#define GEN8_3DSTATE_VIEWPORT_STATE_POINTERS_SF_CLIP \ GEN4_3D(3, 0, 0x21)#define GEN8_3DSTATE_PS_BLEND GEN4_3D(3, 0, 0x4d)lib/gen9_render.h index renamed from lib/gen9_render.h +0
-0
6274e902..cf5bd2d9100644lib/gen9_render.h +5
-1@@ -127,7 +127,11 @@ struct gen9_surface_state { } ss9;struct { -uint32_t aux_base_addr; +uint32_t aux_base_addr:20 ; +uint32_t procedual_texture:1 ; +uint32_t clearvalue_addr_enable:1 ; +uint32_t quilt_height:5 ; +uint32_t quilt_width:5 ; } ss10;struct {lib/igt_fb.c index 43f8c475..422a9e06 renamed from lib/igt_fb.c +0
-0100644
lib/igt_fb.c +0
-0@@ -2141,9 +2141,10 @@ static int yuv_semiplanar_bpp(uint32_t
drm_format)lib/igt_fb.c static int yuv_semiplanar_bpp(uint32_t drm_format)
Quoted 13 lines
lib/igt_fb.c +4
-3} } -static struct intel_buf *create_buf (struct fb_blit_upload *blit, -const struct igt_fb *fb, -const char *name) +struct intel_buf * +igt_fb_create_intel_buf (int fd,struct buf_ops *bops, +const struct igt_fb *fb, +const char *name) {struct intel_buf *buf; uint32_t bo_name, handle, compression; @@ -2169,10 +2170,10@@
lib/igt_fb.c static struct intel_buf *create_buf(struct
Quoted 15 lines
static struct
intel_buf*create_buf(structfb_blit_upload*blit,lib/igt_fb.c +3
-3compression =I915_COMPRESSION_NONE ; } - bo_name =gem_flink (blit->fd, fb->gem_handle); - handle =gem_open (blit->fd, bo_name); + bo_name =gem_flink (fd, fb->gem_handle); + handle =gem_open (fd, bo_name); - buf = intel_buf_create_using_handle(blit->bops, handle, + buf = intel_buf_create_using_handle(bops, handle, fb->width, fb->height, fb->plane_bpp[0], 0, igt_fb_mod_to_tiling(fb->modifier),@@ -2213,6 +2214,13 @@ static struct intel_buf *create_buf(struct
fb_blit_upload*blit,Quoted 19 lines
lib/igt_fb.c +6
-0return buf; } +static struct intel_buf *create_buf (struct fb_blit_upload *blit, +const struct igt_fb *fb, +const char *name) +{ +return igt_fb_create_intel_buf (blit->fd, blit->bops, fb, name); } +static void fini_buf (struct intel_buf *buf) {intel_buf_destroy (buf);lib/igt_fb.h index b36db965..bc5b8fa0 renamed from lib/igt_fb.h +0
-0100644
lib/igt_fb.h +0
-0@@ -39,6 +39,7 @@#include "igt_color_encoding.h" #include "igt_debugfs.h" lib/igt_fb.h
Quoted 10 lines
lib/igt_fb.h +3
-1+#include "intel_bufops.h" /* * Internal format to denote a buffer compatible with pixman's @@ -129,6 +130,8 @@ igt_create_fb_with_bo_size(int fd, int width, int height, enum igt_color_range color_range, struct igt_fb *fb, uint64_t bo_size, unsigned bo_stride); +struct intel_buf *igt_fb_create_intel_buf(int fd, struct buf_ops *bops, +const struct igt_fb *fb, const char *name);
lib/intel_batchbuffer.c igt_vebox_copyfunc_t
Quoted 8 lines
unsigned int igt_create_fb(int fd, int width, int height,
uint32_tformat,
uint64_tmodifier, structigt_fb*fb); unsigned int
igt_create_color_fb(int fd, int width, int height, diff --gita/lib/intel_batchbuffer.cb/lib/intel_batchbuffer.cindexfc73495c..905f69ff100644lib/intel_batchbuffer.c +0
-0@@ -1096,6 +1096,16 @@ igt_vebox_copyfunc_t
igt_get_vebox_copyfunc(int devid)lib/intel_batchbuffer.c igt_vebox_copyfunc_t igt_get_vebox_copyfunc(int devid) · line 1101
Quoted 5 lines
lib/intel_batchbuffer.c +2
-0return copy; } +igt_render_clearfunc_t igt_get_render_clearfunc (int devid) { +igt_render_clearfunc_t clear =NULL ;No need for a variable.
Quoted 15 lines
lib/intel_batchbuffer.c +7
-0+ +if (IS_GEN12 (devid)) + clear = gen12_render_clearfunc; + +return clear; +} +/** * igt_get_media_fillfunc: * @devid: pci device id lib/intel_batchbuffer.h index renamed from lib/intel_batchbuffer.h +0
-0
ab1b0c28..5d996ddf100644lib/intel_batchbuffer.h typedef void (*igt_vebox_copyfunc_t)(struct · line 379
Quoted 6 lines
lib/intel_batchbuffer.h +2
-0@@ -374,6 +374,12 @@ typedef void (*igt_vebox_copyfunc_t)(structintel_bb *ibb, igt_vebox_copyfunc_t igt_get_vebox_copyfunc(int devid); +typedef void (*igt_render_clearfunc_t)(struct intel_bb *ibb, + struct intel_buf *dst, unsigned int dst_x,unsigned int
dst_y,lib/rendercopy.h static inline void emit_vertex_normalized(struct
Quoted 12 lines
lib/intel_batchbuffer.h +4
-0+ unsigned int width, unsigned int height, + float cc_color[4]); +igt_render_clearfunc_t igt_get_render_clearfunc (int devid); +/** * igt_fillfunc_t: * @i915: drm fd
lib/rendercopy.h index renamed from lib/rendercopy.h +0
-0
7d5f0802..dd2e1c43100644lib/rendercopy.h +0
-0@@ -23,6 +23,10 @@ static inline void emit_vertex_normalized(struct
intel_bb*ibb,lib/rendercopy.h static inline void emit_vertex_normalized(struct intel_bb *ibb,
Quoted 5 lines
lib/rendercopy.h +2
-0intel_bb_out (ibb, u.ui); } +void gen12_render_clearfunc (struct intel_bb *ibb, + struct intel_buf *dst, unsigned int dst_x, unsignedint
dst_y,lib/rendercopy_gen9.c gen8_bind_buf(struct intel_bb *ibb, const struct
Quoted 10 lines
lib/rendercopy.h +2
-0+ unsigned int width, unsigned int height, + float clear_color[4]);void gen12_render_copyfunc (struct intel_bb *ibb,struct intel_buf *src,uint32_t src_x,uint32_t src_y, uint32_t width, uint32_t height, diff --git
a/lib/rendercopy_gen9.cb/lib/rendercopy_gen9.cindex ef6855c9..73272085 100644lib/rendercopy_gen9.c +0
-0@@ -188,20 +188,12 @@ gen8_bind_buf(struct intel_bb *ibb, const struct
intel_buf*buf, intis_dst) {lib/rendercopy_gen9.c gen8_bind_buf(struct intel_bb *ibb, const struct · line 189
Quoted 2 lines
lib/rendercopy_gen9.c +0
-0buf->ccs[0 ].offset,intel_bb_offset (ibb)+ 4 * 10,
lib/rendercopy_gen9.c gen8_bind_buf(struct intel_bb *ibb, const struct intel_buf *buf, int is_dst) {
Quoted 8 lines
lib/rendercopy_gen9.c +0
-6buf->addr.offset); - ss->ss10.aux_base_addr = (address + buf->ccs[0 ].offset); - ss->ss11.aux_base_addr_hi = (address + buf->ccs[0 ].offset) > 32; - } - -if (buf->cc.offset) { - igt_assert(buf->compression ==
I915_COMPRESSION_RENDER);lib/rendercopy_gen9.c gen8_bind_buf(struct intel_bb *ibb, const struct · line 194
Quoted 3 lines
lib/rendercopy_gen9.c +2
-0+if (buf->cc.offset) { + ss->ss10.aux_base_addr = (address + buf- ccs[0 ].offset);aux needs to get setup for the !buf->cc.offset case as well.
lib/rendercopy_gen9.c gen8_bind_buf(struct intel_bb *ibb, const struct intel_buf *buf, int is_dst) { · line 193
Quoted 1 line
lib/rendercopy_gen9.c +1
-0+ ss->ss10.clearvalue_addr_enable =1 ;This will also need to get or'd into the aux addr relocation delta.
lib/rendercopy_gen9.c gen8_bind_buf(struct intel_bb *ibb, const struct · line 202
Quoted 5 lines
lib/rendercopy_gen9.c +1
-2+ ss->ss11.aux_base_addr_hi = (address + buf- ccs[0 ].offset) >>32 ; - address = intel_bb_offset_reloc_with_delta(ibb, buf->handle, - read_domain,
write_domain,lib/rendercopy_gen9.c gen8_bind_buf(struct intel_bb *ibb, const struct · line 204
Quoted 2 lines
lib/rendercopy_gen9.c +0
-2- buf->cc.offset, -intel_bb_offset (ibb)+ 4 * 12,
lib/rendercopy_gen9.c gen8_bind_buf(struct intel_bb *ibb, const struct intel_buf *buf, int is_dst) { · line 204
Quoted 3 lines
lib/rendercopy_gen9.c +0
-3- buf->addr.offset); - ss->ss12.clear_address = address + buf->cc.offset; - ss->ss13.clear_address_hi = (address + buf->cc.offset) >>32 ;The above shouldn't be removed.
lib/rendercopy_gen9.c
Quoted 6 lines
lib/rendercopy_gen9.c +1
-0+ }lib/rendercopy_gen9.c +0
-1} return intel_bb_ptr_add_return_prev_offset(ibb, sizeof(*ss)); @@ -218,7 +210,9 @@ gen8_bind_surfaces(struct intel_bb *ibb, binding_table_offset = intel_bb_ptr_add_return_prev_offset(ibb,32);
lib/rendercopy_gen9.c gen7_fill_vertex_buffer_data(struct intel_bb
Quoted 10 lines
lib/rendercopy_gen9.c +3
-1binding_table[0 ] =gen8_bind_buf (ibb, dst,1 ); - binding_table[1 ] =gen8_bind_buf (ibb, src,0 ); + +if (src !=NULL ) + binding_table[1 ] =gen8_bind_buf (ibb, src,1 );return binding_table_offset; }@@ -274,16 +268,39 @@ gen7_fill_vertex_buffer_data(struct intel_bb*ibb,
lib/rendercopy_gen9.c gen7_fill_vertex_buffer_data(struct intel_bb *ibb, · line 270
Quoted 3 lines
lib/rendercopy_gen9.c +0
-0offset =intel_bb_offset (ibb);emit_vertex_2s (ibb, dst_x + width, dst_y + height);Missing scaling for the fast clear case.
lib/rendercopy_gen9.c gen7_fill_vertex_buffer_data(struct intel_bb *ibb, · line 275
Quoted 7 lines
lib/rendercopy_gen9.c +5
-2-emit_vertex_normalized (ibb, src_x + width,intel_buf_width (src)); -emit_vertex_normalized (ibb, src_y + height,intel_buf_height (src)); + +if (src ==NULL ) { + dst_x /=64 ; + dst_y /=16 ; + }Correcty you need to scale the whole sum of
dst_y+ height for instance, also rounding up when needed. Probably better to emit all the vertices in one if branch for the copy case and all the scaled vertices and 0 place holders for the fast clear case in the else branch. Please also add a comment that src == NULL is a fast clear.lib/rendercopy_gen9.c gen7_fill_vertex_buffer_data(struct intel_bb *ibb,
Quoted 3 lines
lib/rendercopy_gen9.c +3
-0+ +if (src !=NULL ) { + emit_vertex_normalized(ibb, src_x + width,
intel_buf_width(src));lib/rendercopy_gen9.c gen7_fill_vertex_buffer_data(struct intel_bb · line 279
Quoted 1 line
lib/rendercopy_gen9.c +1
-0+ emit_vertex_normalized(ibb, src_y + height,
intel_buf_height(src));lib/rendercopy_gen9.c gen7_fill_vertex_buffer_data(struct intel_bb · line 281
Quoted 2 lines
lib/rendercopy_gen9.c +2
-0+ }else { +emit_vertex_normalized (ibb,0 ,0 );Just
emit_vertex(ibb, 0);lib/rendercopy_gen9.c gen7_fill_vertex_buffer_data(struct intel_bb *ibb,
Quoted 10 lines
lib/rendercopy_gen9.c +6
-2+emit_vertex_normalized (ibb,0 ,0 ); + }emit_vertex_2s (ibb, dst_x, dst_y + height); -emit_vertex_normalized (ibb, src_x,intel_buf_width (src)); -emit_vertex_normalized (ibb, src_y + height,intel_buf_height (src)); + +if (src !=NULL ) { +emit_vertex_normalized (ibb, src_x,intel_buf_width (src)); + emit_vertex_normalized(ibb, src_y + height,
intel_buf_height(src));Quoted 20 lines
lib/rendercopy_gen9.c +12
-2+ }else { +emit_vertex_normalized (ibb,0 ,0 ); +emit_vertex_normalized (ibb,0 ,0 ); + }emit_vertex_2s (ibb, dst_x, dst_y); -emit_vertex_normalized (ibb, src_x,intel_buf_width (src)); -emit_vertex_normalized (ibb, src_y,intel_buf_height (src)); + +if (src !=NULL ) { +emit_vertex_normalized (ibb, src_x,intel_buf_width (src)); +emit_vertex_normalized (ibb, src_y,intel_buf_height (src)); + }else { +emit_vertex_normalized (ibb,0 ,0 ); +emit_vertex_normalized (ibb,0 ,0 ); + }return offset; }lib/rendercopy_gen9.c gen8_emit_sf(struct intel_bb *ibb) } · line 752
Quoted 8 lines
lib/rendercopy_gen9.c +2
-1@@ -729,7 +746,7 @@ gen8_emit_sf(struct intel_bb *ibb) }static void -gen8_emit_ps (struct intel_bb *ibb,uint32_t kernel) { +gen8_emit_ps (struct intel_bb *ibb,uint32_t kernel,bool fast_clear) +{const int max_threads =63 ; intel_bb_out(ibb, GEN6_3DSTATE_WM | (2 - 2)); @@ -753,10+770,16 @@
lib/rendercopy_gen9.c gen8_emit_ps(struct intel_bb *ibb, uint32_t kernel) {
Quoted 5 lines
gen8_emit_ps(struct intel_bb *ibb, uint32_t kernel){lib/rendercopy_gen9.c +0
-1intel_bb_out (ibb,GEN7_3DSTATE_PS | (12 -2 ));intel_bb_out (ibb, kernel);intel_bb_out (ibb,0 );/* kernel hi */ - intel_bb_out(ibb, 1 <<
GEN6_3DSTATE_WM_SAMPLER_COUNT_SHIFT|lib/rendercopy_gen9.c
Quoted 1 line
lib/rendercopy_gen9.c +0
-1- 2 <<
GEN6_3DSTATE_WM_BINDING_TABLE_ENTRY_COUNT_SHIFT);lib/rendercopy_gen9.c gen8_emit_ps(struct intel_bb *ibb, uint32_t kernel) {
Quoted 3 lines
lib/rendercopy_gen9.c +3
-0+ +if (fast_clear) +intel_bb_out (ibb,1 )1 <<
GEN6_3DSTATE_WM_BINDING_TABLE_ENTRY_COUNT_SHIFTlib/rendercopy_gen9.c
Quoted 2 lines
lib/rendercopy_gen9.c +2
-0+else + intel_bb_out(ibb, 1 <<
GEN6_3DSTATE_WM_SAMPLER_COUNT_SHIFT|lib/rendercopy_gen9.c
Quoted 1 line
lib/rendercopy_gen9.c +1
-0+ 2 <<
GEN6_3DSTATE_WM_BINDING_TABLE_ENTRY_COUNT_SHIFT);lib/rendercopy_gen9.c gen8_emit_ps(struct intel_bb *ibb, uint32_t kernel) { · line 782
Quoted 4 lines
lib/rendercopy_gen9.c +2
-0+intel_bb_out (ibb,0 );/* scratch space stuff */ intel_bb_out (ibb,0 );/* scratch hi */ +Extra w/s.
Quoted 1 line
intel_bb_out(ibb, (
max_threads- 1) <<
GEN8_3DSTATE_PS_MAX_THREADS_SHIFT|lib/rendercopy_gen9.c
Quoted 2 lines
lib/rendercopy_gen9.c +0
-0GEN6_3DSTATE_WM_16_DISPATCH_ENABLE); intel_bb_out(ibb, 6 <<
GEN6_3DSTATE_WM_DISPATCH_START_GRF_0_SHIFT);lib/rendercopy_gen9.c gen8_emit_ps(struct intel_bb *ibb, uint32_t kernel)
Quoted 1 line
lib/rendercopy_gen9.c +0
-0@@ -765,6 +788,9 @@ gen8_emit_ps(struct intel_bb *ibb, uint32_t kernel){
lib/rendercopy_gen9.c gen8_emit_ps(struct intel_bb *ibb, uint32_t kernel) { · line 792
Quoted 5 lines
lib/rendercopy_gen9.c +2
-0intel_bb_out (ibb,0 );// kernel 2 intel_bb_out (ibb,0 );/* kernel 2 hi */ +if (fast_clear) +intel_bb_out (ibb,GEN8_3DSTATE_FAST_CLEAR_ENABLE );Still in the wrong dword, should be or'd to the
max_threads/wm_16_dispatch enabling value.Quoted 22 lines
lib/rendercopy_gen9.c +6
-9+intel_bb_out (ibb,GEN8_3DSTATE_PS_BLEND | (2 -2 ));intel_bb_out (ibb,GEN8_PS_BLEND_HAS_WRITEABLE_RT );@@ -876,27 +902,31 @@ static void gen8_emit_primitive(struct intel_bb *ibb, uint32_t offset) #define BATCH_STATE_SPLIT 2048 static -void _gen9_render_copyfunc (struct intel_bb *ibb, -struct intel_buf *src, -unsigned int src_x,unsigned int src_y, -unsigned int width,unsigned int height, -struct intel_buf *dst, -unsigned int dst_x,unsigned int dst_y, -struct intel_buf *aux_pgtable_buf, -const uint32_t ps_kernel[][4 ], -uint32_t ps_kernel_size) +void _gen9_render_op(struct intel_bb *ibb, + struct intel_buf *src, + unsigned int src_x, unsigned int src_y, + unsigned int width, unsigned int height, + struct intel_buf *dst,lib/rendercopy_gen9.c static void gen8_emit_primitive(struct intel_bb · line 919
Quoted 10 lines
lib/rendercopy_gen9.c +5
-0+ unsigned int dst_x, unsigned int dst_y, + struct intel_buf *aux_pgtable_buf, + const uint32_t ps_kernel[][4], + uint32_t ps_kernel_size) { uint32_t ps_sampler_state, ps_kernel_off, ps_binding_table;uint32_t scissor_state;uint32_t vertex_buffer;uint32_t aux_pgtable_state; +bool fast_clear = src !=NULL ;bool fast_clear = !src;lib/rendercopy_gen9.c void _gen9_render_copyfunc(struct intel_bb
Quoted 16 lines
lib/rendercopy_gen9.c +5
-2-igt_assert (src->bpp == dst->bpp); +if (src !=NULL ) +igt_assert (src->bpp == dst->bpp);intel_bb_flush_render (ibb);intel_bb_add_intel_buf (ibb, dst, true); -intel_bb_add_intel_buf (ibb, src, false); + +if (!fast_clear) +intel_bb_add_intel_buf (ibb, src, false);intel_bb_ptr_set (ibb,BATCH_STATE_SPLIT );@@ -949,11 +979,13 @@ void _gen9_render_copyfunc(struct intel_bb*ibb,
lib/rendercopy_gen9.c void _gen9_render_copyfunc(struct intel_bb *ibb, · line 982
Quoted 4 lines
lib/rendercopy_gen9.c +1
-0intel_bb_out (ibb,0 );intel_bb_out (ibb,0 ); +gen8_emit_ps (ibb, ps_kernel_off, fast_clear);This isn't needed.
Quoted 49 lines
lib/rendercopy_gen9.c +2
-1+gen7_emit_clip (ibb);gen8_emit_sf (ibb); -gen8_emit_ps (ibb, ps_kernel_off); +gen8_emit_ps (ibb, ps_kernel_off, fast_clear);intel_bb_out (ibb,GEN7_3DSTATE_BINDING_TABLE_POINTERS_PS ); intel_bb_out(ibb, ps_binding_table); @@ -991,9 +1023,9 @@ voidgen9_render_copyfunc(struct
intel_bb*ibb,lib/rendercopy_gen9.c +3
-3unsigned int dst_x, unsigned int dst_y) { -_gen9_render_copyfunc (ibb ,src ,src_x ,src_y , -width ,height ,dst ,dst_x ,dst_y ,NULL , - ps_kernel_gen9, sizeof(ps_kernel_gen9)); +_gen9_render_op (ibb ,src ,src_x ,src_y , +width ,height ,dst ,dst_x ,dst_y ,NULL , + ps_kernel_gen9, sizeof(ps_kernel_gen9)); } void gen11_render_copyfunc(struct intel_bb *ibb, @@ -1003,9 +1035,9@@ void gen11_render_copyfunc(struct
intel_bb*ibb,lib/rendercopy_gen9.c +3
-3struct intel_buf *dst, unsigned int dst_x, unsigned int dst_y) { -_gen9_render_copyfunc (ibb ,src ,src_x ,src_y , -width ,height ,dst ,dst_x ,dst_y ,NULL , - ps_kernel_gen11, sizeof(ps_kernel_gen11)); +_gen9_render_op (ibb ,src ,src_x ,src_y , +width ,height ,dst ,dst_x ,dst_y ,NULL , + ps_kernel_gen11, sizeof(ps_kernel_gen11)); } void gen12_render_copyfunc(struct intel_bb *ibb, @@ -1019,11 +1051,37@@ void gen12_render_copyfunc(struct
intel_bb*ibb,lib/rendercopy_gen9.c +3
-3gen12_aux_pgtable_init (&pgtable_info, ibb, src, dst); -_gen9_render_copyfunc (ibb, src, src_x, src_y, - width, height, dst, dst_x, dst_y, - pgtable_info.pgtable_buf, +_gen9_render_op (ibb, src, src_x, src_y, + width, height, dst, dst_x, dst_y, + pgtable_info.pgtable_buf, gen12_render_copy,sizeof (gen12_render_copy));gen12_aux_pgtable_cleanup (ibb, &pgtable_info); }lib/rendercopy_gen9.c void gen12_render_copyfunc(struct intel_bb *ibb, · line 1071
Quoted 10 lines
lib/rendercopy_gen9.c +10
-0+ +void gen12_render_clearfunc (struct intel_bb *ibb, +struct intel_buf *dst, +unsigned int dst_x,unsigned int dst_y, +unsigned int width,unsigned int height, +float clear_color[4 ]) +{ +struct aux_pgtable_info pgtable_info = { }; + +gen12_aux_pgtable_init (&pgtable_info, ibb,NULL , dst);Still missing the required change for this in
gen12_aux_pgtable_init().lib/rendercopy_gen9.c void gen12_render_copyfunc(struct intel_bb *ibb, · line 1078
Quoted 7 lines
lib/rendercopy_gen9.c +7
-0+ +/* BSpec 21136 */ +intel_bb_ptr_set (ibb, dst->cc.offset); +intel_bb_out (ibb, clear_color[0 ]); +intel_bb_out (ibb, clear_color[2 ]); +intel_bb_out (ibb, clear_color[1 ]); +intel_bb_out (ibb, clear_color[4 ]);This is still not ok, please check the previous review.
tests/kms_ccs.c static void addfb_init(struct igt_fb *fb, struct
Quoted 13 lines
lib/rendercopy_gen9.c +8
-0+ +_gen9_render_op (ibb,NULL ,0 ,0 , + width, height, dst, dst_x, dst_y, + pgtable_info.pgtable_buf, + gen12_render_copy, +sizeof (gen12_render_copy)); + +gen12_aux_pgtable_cleanup (ibb, &pgtable_info); }tests/kms_ccs.c index renamed from tests/kms_ccs.c +0
-0
53abecce..d34bf428100644tests/kms_ccs.c +0
-0@@ -120,6 +120,16 @@ static void addfb_init(struct igt_fb *fb, struct
drm_mode_fb_cmd2*f)tests/kms_ccs.c static void addfb_init(struct igt_fb *fb, struct drm_mode_fb_cmd2 *f) · line 130
Quoted 10 lines
tests/kms_ccs.c +7
-0} } +static bool is_ccs_cc_modifier (uint64_t modifier) { +switch (modifier) { +case LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC : +return true; +default : +return false; + }No need for a switch for this.
tests/kms_ccs.c static void addfb_init(struct igt_fb *fb, struct drm_mode_fb_cmd2 *f)
Quoted 4 lines
tests/kms_ccs.c +2
-0+} +/* * The CCS planes of compressed framebuffers contain non-zero bytes if the
Quoted 2 lines
tests/kms_ccs.c +0
-0* engine compressed effectively the framebuffer. The actual encoding of these @@ -134,6 +144,8 @@ static void check_ccs_plane(int
drm_fd,
igt_fb_t*fb, int plane)tests/kms_ccs.c static void check_ccs_plane(int drm_fd, igt_fb_t *fb, int plane) · line 148
Quoted 5 lines
tests/kms_ccs.c +2
-0void *ccs_p;size_t ccs_size;int i; +uint32_t cc_map[4 ]; +uint32_t native_color;We don't want to check these for every plane, so needs a
check_ccs_cc_plane()func and called fromcheck_all_ccs_planes()only if plane ==igt_fb_is_gen12_ccs_cc_plane().tests/kms_ccs.c static void check_ccs_plane(int drm_fd, igt_fb_t
Quoted 4 lines
tests/kms_ccs.c +0
-0ccs_size = fb->strides[plane] * fb->plane_height[plane];igt_assert (ccs_size);@@ -148,6 +160,17 @@ static void check_ccs_plane(int drm_fd, igt_fb_t*fb, int plane)
tests/kms_ccs.c static void check_ccs_plane(int drm_fd, igt_fb_t *fb, int plane) · line 166
Quoted 7 lines
tests/kms_ccs.c +4
-0if (*(uint32_t *)(ccs_p + i))break ; +memcpy (cc_map, map + fb->offsets[2 ],4 *sizeof (uint32_t )); +igt_assert (colors->r == cc_map[0 ] && + colors->g == cc_map[1 ] && + colors->b == cc_map[2 ]);This will do an incorrect type conversion, need to compare float vs. float. You can use for instance a float/uint32_t union map for both the above and the
native_colorcheck.Using the global colors ptr here is too arbitrary, it needs to get passed in a proper func param.
tests/kms_ccs.c static void check_ccs_plane(int drm_fd, igt_fb_t *fb, int plane) · line 172
Quoted 6 lines
tests/kms_ccs.c +6
-0+ + native_color = (uint8_t )(colors->r *0xff ) <<16 | + (uint8_t )(colors->g *0xff ) <<8 | + (uint8_t )(colors->b *0xff ); + +igt_assert (native_color == cc_map[3 ]);It's cc_map[4] that contains the required value.
tests/kms_ccs.c static void check_all_ccs_planes(int drm_fd,
Quoted 5 lines
tests/kms_ccs.c +1
-0+munmap (map, fb->size); igt_assert_f(i < ccs_size,@@ -160,8 +183,7 @@ static void check_all_ccs_planes(int drm_fd,
igt_fb_t*fb)tests/kms_ccs.c static void generate_fb(data_t *data, struct
Quoted 21 lines
tests/kms_ccs.c +5
-2int i;for (i =0 ; i < fb->num_planes; i++) { -if (igt_fb_is_ccs_plane (fb, i) && - !igt_fb_is_gen12_ccs_cc_plane (fb, i)) +if (igt_fb_is_ccs_plane (fb, i))check_ccs_plane (drm_fd, fb, i); } }@@ -176,6 +198,11 @@ static int get_ccs_plane_index(uint32_t format)return index; } +static struct intel_buf *fast_clear_fb (int drm_fd,struct buf_ops +*bops,struct igt_fb *fb,const char *name) { +return igt_fb_create_intel_buf (drm_fd, bops, fb, name); } +static void generate_fb (data_t *data,struct igt_fb *fb,int width,int height,enum test_fb_flags fb_flags)@@ -246,10 +273,31 @@ static void generate_fb(data_t *data, struct
igt_fb*fb,tests/kms_ccs.c static void generate_fb(data_t *data, struct igt_fb *fb,
Quoted 9 lines
tests/kms_ccs.c +2
-4if (!(data->flags &TEST_BAD_PIXEL_FORMAT )) {int c = !!data->plane; - cr =igt_get_cairo_ctx (data->drm_fd, fb); -igt_paint_color (cr,0 ,0 , width, height, - colors[c].r, colors[c].g, colors[c].b); -igt_put_cairo_ctx (cr); +if (is_ccs_cc_modifier (modifier)) { + float cc_color[4] = {colors[0].r, colors[0].g,colors[0].b, 1.0};
tests/kms_ccs.c static void generate_fb(data_t *data, struct · line 278
Quoted 1 line
tests/kms_ccs.c +1
-0+ struct intel_bb *ibb = intel_bb_create(data->drm_fd,4096);
tests/kms_ccs.c static void generate_fb(data_t *data, struct · line 281
Quoted 3 lines
tests/kms_ccs.c +2
-0+struct buf_ops *bops =buf_ops_create (data- drm_fd); + struct intel_buf *dst = fast_clear_fb(data->drm_fd,bops, fb,
tests/kms_ccs.c static void generate_fb(data_t *data, struct igt_fb *fb,
Quoted 4 lines
tests/kms_ccs.c +4
-0+"fast clear dst"); + + gem_set_domain(data->drm_fd, fb->gem_handle, + I915_GEM_DOMAIN_GTT,
I915_GEM_DOMAIN_GTT);tests/kms_ccs.c static void generate_fb(data_t *data, struct igt_fb *fb, · line 289
Quoted 6 lines
tests/kms_ccs.c +6
-0+ +/* +* We expect the kernel to limit the max fb +* size/stride to something that can still +* rendered with the blitter/render engine. +*/ The above is a left-over comment.
tests/kms_ccs.c static void generate_fb(data_t *data, struct igt_fb *fb, · line 293
Quoted 4 lines
tests/kms_ccs.c +4
-0+gen12_render_clearfunc (ibb, dst,0 ,0 , + fb->width, + fb->height, + cc_color);igt_render_clearfunc_t fast_clear = igt_get_render_clearfunc(); fast_clear(...)tests/kms_ccs.c static void generate_fb(data_t *data, struct igt_fb *fb, · line 294
Quoted 1 line
tests/kms_ccs.c +1
-0+intel_bb_reset (ibb, true);Instead of reset, we need an intel_bb_sync()/intel_bb_destroy(). Also missing cleanup for bops and dst.
Please make all the above setup/cleanup be part of
fast_clear_fb()as well.tests/kms_ccs.c static void generate_fb(data_t *data, struct igt_fb *fb, · line 299
Quoted 5 lines
tests/kms_ccs.c +5
-0+ }else { + cr =igt_get_cairo_ctx (data->drm_fd, fb); +igt_paint_color (cr,0 ,0 , width, height, + colors[c].r, colors[c].g, colors[c].b); +igt_put_cairo_ctx (cr);Wrong indent.
tests/kms_ccs.c static void generate_fb(data_t *data, struct
Quoted 4 lines
tests/kms_ccs.c +1
-0+ } } ret = drmIoctl(data->drm_fd, LOCAL_DRM_IOCTL_MODE_ADDFB2,&f); @@
Quoted 1 line
-349,6 +397,10 @@ static bool try_config(data_t *data, enum
test_fb_flags
fb_flags,tests/kms_ccs.c static bool try_config(data_t *data, enum test_fb_flags fb_flags, · line 400
Quoted 4 lines
tests/kms_ccs.c +1
-0if (data->flags &TEST_BAD_ROTATION_90 )igt_plane_set_rotation (primary,IGT_ROTATION_90 ); + if (!is_ccs_cc_modifier(data->ccs_modifier)if (is_ccs_cc() && format != XRGB8888)
Quoted 9 lines
Quoted 9 lines
tests/kms_ccs.c +3
-1+ && data->format != DRM_FORMAT_XRGB8888) +return false; + ret =igt_display_try_commit2 (display, commit);if (data->flags &TEST_BAD_ROTATION_90 ) {igt_assert_eq (ret, -EINVAL ); --2.25.1
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_ccs: CCS Clear Color test
In reply to Mika Kahola== Series Details ==
== Series Details ==
Series: tests/kms_ccs: CCS Clear Color test
URL : https://patchwork.freedesktop.org/series/83737/
State : failure
== Summary ==
CI Bug Log - changes from IGT_5847 -> IGTPW_5155
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_5155 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_5155, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_5155:
### IGT changes ###
#### Possible regressions ####
* igt@gem_render_linear_blits@basic:
- fi-cfl-8700k: [PASS][1] -> [CRASH][2] +2 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-cfl-8700k/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-cfl-8700k/igt@[email protected]
- fi-kbl-r: [PASS][3] -> [CRASH][4] +2 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-kbl-r/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-kbl-r/igt@[email protected]
- fi-cfl-8109u: [PASS][5] -> [CRASH][6] +2 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-cfl-8109u/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-cfl-8109u/igt@[email protected]
- fi-kbl-guc: [PASS][7] -> [CRASH][8] +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-kbl-guc/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-kbl-guc/igt@[email protected]
- fi-skl-lmem: [PASS][9] -> [CRASH][10] +2 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-skl-lmem/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-skl-lmem/igt@[email protected]
- fi-kbl-7500u: [PASS][11] -> [CRASH][12] +2 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-kbl-7500u/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-kbl-7500u/igt@[email protected]
- fi-kbl-x1275: [PASS][13] -> [CRASH][14] +2 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-kbl-x1275/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-kbl-x1275/igt@[email protected]
- fi-tgl-y: [PASS][15] -> [CRASH][16] +1 similar issue
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-tgl-y/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-tgl-y/igt@[email protected]
* igt@gem_render_tiled_blits@basic:
- fi-skl-6700k2: [PASS][17] -> [CRASH][18] +2 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-skl-6700k2/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-skl-6700k2/igt@[email protected]
- fi-kbl-soraka: [PASS][19] -> [CRASH][20] +2 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-kbl-soraka/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-kbl-soraka/igt@[email protected]
- fi-cfl-guc: [PASS][21] -> [CRASH][22] +2 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-cfl-guc/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-cfl-guc/igt@[email protected]
- fi-icl-u2: [PASS][23] -> [CRASH][24] +2 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-icl-u2/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-icl-u2/igt@[email protected]
- fi-skl-6600u: [PASS][25] -> [CRASH][26] +2 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-skl-6600u/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-skl-6600u/igt@[email protected]
- fi-icl-y: [PASS][27] -> [CRASH][28] +2 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-icl-y/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-icl-y/igt@[email protected]
- fi-skl-guc: [PASS][29] -> [CRASH][30] +2 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-skl-guc/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-skl-guc/igt@[email protected]
- fi-kbl-8809g: [PASS][31] -> [CRASH][32] +1 similar issue
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-kbl-8809g/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-kbl-8809g/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-tgl-u2: [PASS][33] -> [CRASH][34] +2 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-tgl-u2/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-tgl-u2/igt@[email protected]
- fi-cml-s: [PASS][35] -> [CRASH][36] +2 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-cml-s/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-cml-s/igt@[email protected]
- fi-cml-u2: [PASS][37] -> [CRASH][38] +2 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-cml-u2/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-cml-u2/igt@[email protected]
- fi-glk-dsi: [PASS][39] -> [CRASH][40] +2 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-glk-dsi/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-glk-dsi/igt@[email protected]
#### Warnings ####
* igt@kms_frontbuffer_tracking@basic:
- fi-tgl-y: [DMESG-WARN][41] ([i915#1982]) -> [CRASH][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-tgl-y/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-tgl-y/igt@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@gem_render_linear_blits@basic:
- {fi-kbl-7560u}: [PASS][43] -> [CRASH][44] +2 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-kbl-7560u/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-kbl-7560u/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- {fi-ehl-1}: [PASS][45] -> [CRASH][46] +2 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-ehl-1/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-ehl-1/igt@[email protected]
- {fi-tgl-dsi}: [PASS][47] -> [CRASH][48] +2 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-tgl-dsi/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-tgl-dsi/igt@[email protected]
Known issues
------------
Here are the changes found in IGTPW_5155 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_render_tiled_blits@basic:
- fi-apl-guc: [PASS][49] -> [CRASH][50] ([i915#1635]) +2 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-apl-guc/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-apl-guc/igt@[email protected]
* igt@i915_getparams_basic@basic-subslice-total:
- fi-tgl-y: [PASS][51] -> [DMESG-WARN][52] ([i915#402]) +1 similar issue
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-tgl-y/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-tgl-y/igt@[email protected]
* igt@i915_module_load@reload:
- fi-tgl-y: [PASS][53] -> [DMESG-WARN][54] ([i915#1982] / [k.org#205379])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-tgl-y/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-tgl-y/igt@[email protected]
* igt@kms_busy@basic@flip:
- fi-tgl-y: [PASS][55] -> [DMESG-WARN][56] ([i915#1982])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-tgl-y/igt@kms_busy@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-tgl-y/igt@kms_busy@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-apl-guc: [PASS][57] -> [DMESG-WARN][58] ([i915#1635] / [i915#1982])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-apl-guc/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-apl-guc/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- fi-icl-u2: [PASS][59] -> [DMESG-WARN][60] ([i915#1982]) +2 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-icl-u2/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-icl-u2/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-bxt-dsi: [PASS][61] -> [CRASH][62] ([i915#1635]) +2 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-bxt-dsi/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-bxt-dsi/igt@[email protected]
#### Possible fixes ####
* igt@core_hotunplug@unbind-rebind:
- fi-kbl-7500u: [DMESG-WARN][63] -> [PASS][64]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-kbl-7500u/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-kbl-7500u/igt@[email protected]
* igt@i915_module_load@reload:
- fi-icl-u2: [DMESG-WARN][65] ([i915#1982]) -> [PASS][66] +1 similar issue
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-icl-u2/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-icl-u2/igt@[email protected]
- fi-kbl-soraka: [DMESG-WARN][67] ([i915#1982]) -> [PASS][68]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-kbl-soraka/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-kbl-soraka/igt@[email protected]
* igt@i915_pm_rpm@basic-pci-d3-state:
- {fi-ehl-1}: [DMESG-WARN][69] ([i915#1982]) -> [PASS][70]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-ehl-1/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-ehl-1/igt@[email protected]
- fi-byt-j1900: [DMESG-WARN][71] ([i915#1982]) -> [PASS][72]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-byt-j1900/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-byt-j1900/igt@[email protected]
* igt@i915_selftest@live@gt_timelines:
- fi-apl-guc: [INCOMPLETE][73] ([i915#1635]) -> [PASS][74]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-apl-guc/igt@i915_selftest@live@gt_timelines.html
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-apl-guc/igt@i915_selftest@live@gt_timelines.html
* igt@kms_busy@basic@flip:
- {fi-kbl-7560u}: [DMESG-WARN][75] ([i915#1982]) -> [PASS][76]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-kbl-7560u/igt@kms_busy@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-kbl-7560u/igt@kms_busy@[email protected]
- {fi-tgl-dsi}: [DMESG-WARN][77] ([i915#1982]) -> [PASS][78]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-tgl-dsi/igt@kms_busy@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-tgl-dsi/igt@kms_busy@[email protected]
* igt@kms_chamelium@dp-crc-fast:
- fi-cml-u2: [DMESG-WARN][79] ([i915#1982]) -> [PASS][80]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-cml-u2/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-cml-u2/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-bsw-kefka: [DMESG-WARN][81] ([i915#1982]) -> [PASS][82]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-bsw-kefka/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-bsw-kefka/igt@[email protected]
* igt@vgem_basic@dmabuf-fence-before:
- fi-tgl-y: [DMESG-WARN][83] ([i915#402]) -> [PASS][84] +2 similar issues
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-tgl-y/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-tgl-y/igt@[email protected]
#### Warnings ####
* igt@gem_exec_suspend@basic-s3:
- fi-tgl-y: [DMESG-WARN][85] ([i915#2411] / [i915#402]) -> [DMESG-WARN][86] ([i915#2411])
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-tgl-y/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-tgl-y/igt@[email protected]
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-tgl-y: [DMESG-WARN][87] ([i915#1982] / [i915#2411]) -> [DMESG-WARN][88] ([i915#2411])
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-tgl-y/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-tgl-y/igt@[email protected]
* igt@kms_chamelium@dp-crc-fast:
- fi-kbl-7500u: [FAIL][89] ([i915#1161] / [i915#262]) -> [DMESG-WARN][90] ([i915#1982])
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5847/fi-kbl-7500u/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/fi-kbl-7500u/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#1161]: https://gitlab.freedesktop.org/drm/intel/issues/1161
[i915#1635]: https://gitlab.freedesktop.org/drm/intel/issues/1635
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2411]: https://gitlab.freedesktop.org/drm/intel/issues/2411
[i915#262]: https://gitlab.freedesktop.org/drm/intel/issues/262
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[k.org#205379]: https://bugzilla.kernel.org/show_bug.cgi?id=205379
Participating hosts (46 -> 42)
------------------------------
Missing (4): fi-ilk-m540 fi-bsw-cyan fi-bdw-samus fi-hsw-4200u
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5847 -> IGTPW_5155
CI-20190529: 20190529
CI_DRM_9306: aa2146fce2fc6620f235dfe85f4873dad87ff286 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_5155: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/index.html
IGT_5847: 8cffaebec5228a5042cc6928ac582a0589e2de3e @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5155/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev