>I was planning to change platform_wayland.c not to use _DRI_IMAGE_USE_SHARE >when self sharing. But after looking more closely, it seems that >PIPE_BIND_SHARED >would be necessary for gallium drivers for self-sharing too. > >Since we want to enable tiling when we use self-sharing, my patch isn't >adapted. >I should add a new flag to explicitly say we'll use cross-gpu sharing. > >Should it be a new binding flag? > >Axel Davy
I suggest to add a bind flag in p_defines.h: #define PIPE_BIND_LINEAR (1 << 21) and an use flag in dri_interface.h: #define __DRI_IMAGE_USE_LINEAR 0x0008 Both would enforce no tiling. My patch would use them instead of PIPE_BIND_SHARED and __DRI_IMAGE_USE_SHARE. Axel Davy _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev