mesa/src
Marek Olšák c679e7debd mesa: pop all textures up to NumCurrentTexUsed, not just MaxTextureUnits
glPush/PopAttrib had 2 defects:
- Only MaxTextureUnits were pushed and popped (which is 8 at most).
- If some texture units had been unused, we would still push/pop them.

This fix changes how many units we push and pop to NumCurrentTexUsed,
which is the maximum texture unit + 1 that was used to by the user.

This commit:
- In glPushAttrib, save NumCurrentTexUsed texture units.
- In glPopAttrib, restore the same number of texture units, and if
  NumCurrentTexUsed has increased since glPushAttrib, bind 0 in the newly
  used units to get them to the state before glPushAttrib.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8181>
2021-01-30 16:25:29 -05:00
..
amd ac,radeonsi: track memory usage in KB to reduce types from uint64 to uint32 2021-01-30 15:38:15 -05:00
android_stub egl/android: implement image cleanup callback 2020-12-15 06:05:27 +00:00
broadcom vc4: add drm-shim 2021-01-28 16:14:06 +00:00
compiler spirv: Store SPIR-V version of the module 2021-01-29 23:36:29 +00:00
drm-shim drm-shim: Fix unused variable warnings from asserts in release build. 2020-08-28 22:45:08 +00:00
egl egl/dri2: enable EGL_WL_bind_wayland_display in EGL device platform 2021-01-28 00:30:10 +00:00
etnaviv etnaviv, v3d: Fix valgrind include paths. 2020-12-15 19:39:29 +00:00
freedreno ir3: Assume that nir_tex_instr::dest_type is sized 2021-01-25 11:22:07 +01:00
gallium mesa: fix glPopAttrib for many texture fields 2021-01-30 16:23:53 -05:00
gbm egl: implement EGL_EXT_protected_surface support 2020-11-02 10:15:47 +01:00
getopt
glx glx: Provide glvnd wrapper for glXSwapIntervalEXT 2021-01-22 22:34:23 -08:00
gtest
hgl hgl: Major refactor and cleanup 2021-01-09 20:51:35 -06:00
imgui
intel intel/compiler: cache computed register pressure benefit 2021-01-29 11:31:39 +00:00
loader loader: Print dlerror() output in the failure message 2020-11-04 21:45:37 +00:00
mapi glapi: guard against invalid XML definitions for glthread 2021-01-29 02:28:42 +00:00
mesa mesa: pop all textures up to NumCurrentTexUsed, not just MaxTextureUnits 2021-01-30 16:25:29 -05:00
microsoft microsoft/compiler: Make resource_state_manager only build with_gallium_d3d12 2021-01-29 12:54:02 -08:00
nouveau nouveau: add drm-shim support 2021-01-11 22:45:01 +00:00
panfrost pan/bi: Add packing format tests 2021-01-29 16:55:44 +00:00
util util: Use explicit relaxed reads for u_queue 2021-01-28 18:07:09 +00:00
virtio virgl: update headers 2021-01-22 21:25:48 +00:00
vulkan vulkan: Update XML and headers to 1.2.168 2021-01-27 22:20:52 +00:00
meson.build nouveau: add drm-shim support 2021-01-11 22:45:01 +00:00
SConscript driconf: drop now unused translation facility 2020-06-22 21:50:12 +00:00