mesa/src
Asahi Lina 1313787c12 asahi: Do not overread user index buffers
We need to align the extent to 4 for the GPU, but we can't copy more
than the original size out of the user buffer. Always alloc the exact
size we need.

This does mean the GPU gets an IB extent that could include some other
stuff later in the pool, if not aligned. This is probably safe? Given
the base alignment, it should never cross a page boundary and fault or
anything like that.

Signed-off-by: Asahi Lina <lina@asahilina.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21686>
2023-03-03 16:28:46 +00:00
..
amd aco/tests: add tests for v_fma_f32 with 2 fp16 literals 2023-03-03 14:20:55 +00:00
android_stub util/log: improve logger_android 2023-02-22 17:55:40 +00:00
asahi asahi: Add agx_debug_fault() helper 2023-03-03 00:28:48 +00:00
broadcom ci: uprev CTS to 1.3.5.0 2023-03-03 08:23:21 +00:00
c11 c11: Remove _MTX_INITIALIZER_NP for windows 2022-11-09 04:38:28 +00:00
compiler nir: skip nir_op_unpack_32_4x8 in nir_lower_alu_width 2023-03-03 03:27:40 +00:00
drm-shim drm-shim: Use hide_drm_device_path() to hide other drm devices 2022-12-30 15:51:11 -08:00
egl egl/wayland: Fix destruction of event queue with proxies still attached. 2023-03-02 18:32:02 +00:00
etnaviv ci/etnaviv: Drop one more gc7000 xfail. 2023-02-24 07:31:36 +00:00
freedreno ci: uprev CTS to 1.3.5.0 2023-03-03 08:23:21 +00:00
gallium asahi: Do not overread user index buffers 2023-03-03 16:28:46 +00:00
gbm gbm: drop unnecessary vulkan dependency 2023-02-23 18:31:22 +00:00
getopt
glx glx: fix indirect initialization crash 2023-03-01 19:54:00 +00:00
gtest gtest: Fix maybe-uninitialized compiler warning 2022-06-29 21:02:18 +00:00
imagination pvr: Advertise STORAGE_IMAGE_BIT for B10G11R11_UFLOAT_PACK32 2023-03-02 16:33:53 +00:00
imgui
intel blorp: add dependency on idep_intel_dev 2023-03-03 13:04:23 +00:00
loader loader: do not check the mesa DRI_Mesa version if it was not found 2023-02-22 15:07:24 +00:00
mapi glthread: fix a perf regression due to draw_always_async flag, fix DrawIndirect 2023-03-01 23:18:10 +00:00
mesa mesa/framebuffer: fix gl_framebuffer.resolve refcnt imbalance 2023-03-03 01:28:47 +00:00
microsoft microsoft/compiler: Handle scoped barrier in Tess splitting 2023-02-27 20:24:01 +00:00
nouveau nir: add assertions that loops don't have a Continue Construct 2023-02-21 10:41:11 +00:00
panfrost panfrost/ci: add EGL tests 2023-03-03 10:14:29 +00:00
tool tool/pps: Fix 32-bit build issue with format string 2023-01-18 19:27:41 +00:00
util util/glsl2spirv: add support for include directive 2023-03-03 11:30:54 +00:00
virtio ci: uprev CTS to 1.3.5.0 2023-03-03 08:23:21 +00:00
vulkan wsi/win32: Implement VK_EXT_swapchain_maintenance1. 2023-03-03 03:59:13 +00:00
meson.build hgl: remove 2023-02-18 00:44:43 +00:00