[Mesa-dev] [PATCH] intel/isl: Declare private array as static const

Jason Ekstrand jason at jlekstrand.net
Thu Nov 30 16:41:56 UTC 2017


Oops. Rb


On November 30, 2017 01:27:50 Kenneth Graunke <kenneth at whitecape.org> wrote:

> On Wednesday, November 29, 2017 11:10:48 AM PST Chad Versace wrote:
>> It's array isl_drm.c:modifier_info[] .
>> ---
>>  src/intel/isl/isl_drm.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/src/intel/isl/isl_drm.c b/src/intel/isl/isl_drm.c
>> index eb3c6f59138..31895e15e16 100644
>> --- a/src/intel/isl/isl_drm.c
>> +++ b/src/intel/isl/isl_drm.c
>> @@ -71,7 +71,7 @@ isl_tiling_from_i915_tiling(uint32_t tiling)
>>     unreachable("Invalid i915 tiling");
>>  }
>>
>> -struct isl_drm_modifier_info modifier_info[] = {
>> +static const struct isl_drm_modifier_info modifier_info[] = {
>>     {
>>        .modifier = DRM_FORMAT_MOD_NONE,
>>        .name = "DRM_FORMAT_MOD_NONE",
>>
>
> Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
>
>
>
> ----------
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev




More information about the mesa-dev mailing list