The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

aux/android: The Android XINA already always adds "sampled"

+2 -9
+2 -9
src/xrt/auxiliary/android/android_ahardwarebuffer_allocator.c
··· 114 114 desc.width = xsci->width; 115 115 desc.format = ahb_format; 116 116 desc.layers = xsci->array_size; 117 + // Monado always samples layers 118 + desc.usage |= AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE; 117 119 if (xsci->face_count == 6) { 118 120 desc.usage |= AHARDWAREBUFFER_USAGE_GPU_CUBE_MAP; 119 121 desc.layers *= 6; ··· 121 123 if (0 != (xsci->bits & (XRT_SWAPCHAIN_USAGE_COLOR | XRT_SWAPCHAIN_USAGE_DEPTH_STENCIL))) { 122 124 desc.usage |= AHARDWAREBUFFER_USAGE_GPU_FRAMEBUFFER; 123 125 } 124 - 125 - // The compositor always needs to sample the buffer, add the flag. 126 - desc.usage |= AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE; 127 - 128 - // Here if the above changes. 129 - if (0 != (xsci->bits & XRT_SWAPCHAIN_USAGE_SAMPLED)) { 130 - desc.usage |= AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE; 131 - } 132 - 133 126 if (0 != (xsci->create & XRT_SWAPCHAIN_CREATE_PROTECTED_CONTENT)) { 134 127 desc.usage |= AHARDWAREBUFFER_USAGE_PROTECTED_CONTENT; 135 128 }