[igt-dev] [PATCH RFC i-g-t 03/10] tests/kms_ccs: Add GEN12 CCS render compression format modifiers

Radhakrishna Sripada radhakrishna.sripada at intel.com
Tue Oct 29 21:27:46 UTC 2019


On Wed, Sep 25, 2019 at 04:09:24PM +0300, Mika Kahola wrote:
> Add GEN12 CCS format modifiers for render compression.
> 
> Signed-off-by: Mika Kahola <mika.kahola at intel.com>
> ---
>  tests/kms_ccs.c | 17 ++++++++++++++---
>  1 file changed, 14 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c
> index 1ce66cde..cde62416 100644
> --- a/tests/kms_ccs.c
> +++ b/tests/kms_ccs.c
> @@ -75,6 +75,10 @@ static const uint64_t ccs_modifiers[] = {
>  	LOCAL_I915_FORMAT_MOD_Yf_TILED_CCS,
>  };
>  
> +static const uint64_t ccs_gen12_modifiers[] = {
> +	LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS,
> +};
> +
>  /*
>   * Limit maximum used sprite plane width so this test will not mistakenly
>   * fail on hardware limitations which are not interesting to this test.
> @@ -307,9 +311,16 @@ static int __test_output(data_t *data)
>  
>  	igt_output_set_pipe(data->output, data->pipe);
>  
> -	for (i = 0; i < ARRAY_SIZE(ccs_modifiers); i++) {
> -		data->ccs_modifier = ccs_modifiers[i];
> -		valid_tests += test_ccs(data);
> +	if (intel_gen(intel_get_drm_devid(data->drm_fd)) >= 12) {
> +		for (i = 0; i < ARRAY_SIZE(ccs_gen12_modifiers); i++) {
> +			data->ccs_modifier = ccs_gen12_modifiers[i];
Do we skip the gen9 ccs modifiers here?

- Radhakrishna(RK) Sripada
> +			valid_tests += test_ccs(data);
> +		}
> +	} else {
> +		for (i = 0; i < ARRAY_SIZE(ccs_modifiers); i++) {
> +			data->ccs_modifier = ccs_modifiers[i];
> +			valid_tests += test_ccs(data);
> +		}
>  	}
>  
>  	igt_output_set_pipe(data->output, PIPE_NONE);
> -- 
> 2.17.1
> 
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev


More information about the igt-dev mailing list