Re: [PATCH i-g-t] tests/perf: fix build where system headers don't have Gen8 formats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 04, 2017 at 02:21:36PM +0100, Lionel Landwerlin wrote:
> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@xxxxxxxxx>
> ---
>  tests/perf.c | 13 ++++++++++---
>  1 file changed, 10 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/perf.c b/tests/perf.c
> index f0ec26dd..aa6358d3 100644
> --- a/tests/perf.c
> +++ b/tests/perf.c
> @@ -143,6 +143,13 @@ enum drm_i915_perf_record_type {
>  };
>  #endif /* !DRM_I915_PERF_OPEN */
>  
> +/* There is no ifdef we can use for those formats :( */
> +enum {
> +	local_I915_OA_FORMAT_A12 = I915_OA_FORMAT_A12,
> +	local_I915_OA_FORMAT_A12_B8_C8 = I915_OA_FORMAT_A12_B8_C8,
> +	local_I915_OA_FORMAT_A32u40_A4u32_B8_C8 = I915_OA_FORMAT_A32u40_A4u32_B8_C8,
> +};
> +


The whole point is that we don't have I915_OA_FORMAT_A12, you can't
use that for the value of local_I915_OA_FORMAT_A12, etc. You need to use the number.


--
Petri Latvala
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux