[Mesa-dev] [v7 4/9] intel: set dri image dimensions even when creating out of primes

Chad Versace chad.versace at linux.intel.com
Fri Jul 19 12:38:33 PDT 2013


On 07/10/2013 01:24 AM, Topi Pohjolainen wrote:
> Otherwise 'intel_set_texture_image_region()' won't have enough
> details to work with.
>
> Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
> ---
>   src/mesa/drivers/dri/i965/intel_screen.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
> index e3ce505..56549e4 100644
> --- a/src/mesa/drivers/dri/i965/intel_screen.c
> +++ b/src/mesa/drivers/dri/i965/intel_screen.c
> @@ -679,6 +679,8 @@ intel_create_image_from_fds(__DRIscreen *screen,
>         image->strides[index] = strides[index];
>      }
>
> +   intel_setup_image_from_dimensions(image);
> +
>      return image;
>   }

Function intel_setup_image_from_dimensions() is a strange little thing...
I never knew that existed.

Reviewed-by: Chad Versace <chad.versace at linux.intel.com>


More information about the mesa-dev mailing list