[Mesa-dev] [PATCH] mesa: Fix function pointers initialization in status tracker

Brian Paul brianp at vmware.com
Thu Jan 25 20:40:22 UTC 2018


On 01/25/2018 01:09 PM, Eleni Maria Stea wrote:
> We assigned the function that gets the device uuid to the GetDriverUuid
> function pointer and the function that gets the driver uuid to the
> GetDeviceUuid function pointer inside the state tracker. Exchanged the
> pointers.
> ---
>   src/mesa/state_tracker/st_context.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
> index 3ba4847926..d3e7d3fb7f 100644
> --- a/src/mesa/state_tracker/st_context.c
> +++ b/src/mesa/state_tracker/st_context.c
> @@ -757,8 +757,8 @@ st_init_driver_functions(struct pipe_screen *screen,
>      functions->UpdateState = st_invalidate_state;
>      functions->QueryMemoryInfo = st_query_memory_info;
>      functions->SetBackgroundContext = st_set_background_context;
> -   functions->GetDriverUuid = st_get_device_uuid;
> -   functions->GetDeviceUuid = st_get_driver_uuid;
> +   functions->GetDriverUuid = st_get_driver_uuid;
> +   functions->GetDeviceUuid = st_get_device_uuid;
>   
>      /* GL_ARB_get_program_binary */
>      functions->GetProgramBinaryDriverSHA1 = st_get_program_binary_driver_sha1;
> 

Reviewed-by: Brian Paul <brianp at vmware.com>

I'll also cc mesa-stable on it and push it soon.

-Brian


More information about the mesa-dev mailing list