mesa.git
14 years agopython/tests: Run trhough tests randomly.
José Fonseca [Wed, 31 Mar 2010 13:05:55 +0000 (14:05 +0100)]
python/tests: Run trhough tests randomly.

14 years agogallivm: Fix USCALED translation. Minor Cleanups.
José Fonseca [Wed, 31 Mar 2010 13:05:21 +0000 (14:05 +0100)]
gallivm: Fix USCALED translation. Minor Cleanups.

14 years agollvmpipe: More accurate format capability exporting.
José Fonseca [Wed, 31 Mar 2010 13:00:46 +0000 (14:00 +0100)]
llvmpipe: More accurate format capability exporting.

14 years agollvmpipe: Drop the aos format conversion.
José Fonseca [Wed, 31 Mar 2010 12:59:59 +0000 (13:59 +0100)]
llvmpipe: Drop the aos format conversion.

It's unused and incomplete. Still in git history if necessary in future.

14 years agoutil: Generalize lp_format_is_rgba8 into util_format_is_rgba8_variant.
José Fonseca [Wed, 31 Mar 2010 12:55:12 +0000 (13:55 +0100)]
util: Generalize lp_format_is_rgba8 into util_format_is_rgba8_variant.

14 years agopython/tests: Rename test name.
José Fonseca [Wed, 31 Mar 2010 12:28:36 +0000 (13:28 +0100)]
python/tests: Rename test name.

We only test blitting from a surface -- we don't test any sampler state.

14 years agopython/tests: Test all existing gallium formats.
José Fonseca [Wed, 31 Mar 2010 12:27:08 +0000 (13:27 +0100)]
python/tests: Test all existing gallium formats.

14 years agopython/tests: Speed up the tests by reusing the same pipe context.
José Fonseca [Wed, 31 Mar 2010 12:12:08 +0000 (13:12 +0100)]
python/tests: Speed up the tests by reusing the same pipe context.

14 years agopython/tests: Get the tests running again.
José Fonseca [Wed, 31 Mar 2010 11:28:49 +0000 (12:28 +0100)]
python/tests: Get the tests running again.

14 years agost/python: Generate binding for u_format utility functions too.
José Fonseca [Wed, 31 Mar 2010 11:28:12 +0000 (12:28 +0100)]
st/python: Generate binding for u_format utility functions too.

14 years agoi965g: Fix assertion that was always true.
Vinson Lee [Wed, 31 Mar 2010 06:46:51 +0000 (23:46 -0700)]
i965g: Fix assertion that was always true.

surface_format field is a 9-bit field and the value of
BRW_SURFACEFORMAT_INVALID exceeds 9 bits.

14 years agost/dri: Remove unnecessary header.
Vinson Lee [Wed, 31 Mar 2010 06:35:32 +0000 (23:35 -0700)]
st/dri: Remove unnecessary header.

14 years agoidentity: Remove unnecessary header.
Vinson Lee [Wed, 31 Mar 2010 05:42:45 +0000 (22:42 -0700)]
identity: Remove unnecessary header.

14 years agost/dri: Remove unnecessary header.
Vinson Lee [Wed, 31 Mar 2010 05:35:23 +0000 (22:35 -0700)]
st/dri: Remove unnecessary header.

14 years agomesa: added glGet queries for transform_feedback
Brian Paul [Wed, 31 Mar 2010 01:55:08 +0000 (19:55 -0600)]
mesa: added glGet queries for transform_feedback

14 years agomesa: added glEnable/Disable state for transform feedback
Brian Paul [Wed, 31 Mar 2010 01:54:51 +0000 (19:54 -0600)]
mesa: added glEnable/Disable state for transform feedback

14 years agomesa: add new query/buffer targets for transform feedback
Brian Paul [Wed, 31 Mar 2010 01:53:01 +0000 (19:53 -0600)]
mesa: add new query/buffer targets for transform feedback

14 years agomesa: plug in transform feedback functions, set limits
Brian Paul [Wed, 31 Mar 2010 01:51:26 +0000 (19:51 -0600)]
mesa: plug in transform feedback functions, set limits

14 years agomesa: add transformfeedback.c to build
Brian Paul [Wed, 31 Mar 2010 01:50:49 +0000 (19:50 -0600)]
mesa: add transformfeedback.c to build

14 years agomesa: initial check-in of transform feedback functions
Brian Paul [Wed, 31 Mar 2010 01:50:11 +0000 (19:50 -0600)]
mesa: initial check-in of transform feedback functions

14 years agomesa: add transform feedback queries
Brian Paul [Wed, 31 Mar 2010 01:54:02 +0000 (19:54 -0600)]
mesa: add transform feedback queries

And make _mesa_copy_string() non-static.

14 years agomesa: add EXT_transform_feedback to extension list
Brian Paul [Wed, 31 Mar 2010 01:53:28 +0000 (19:53 -0600)]
mesa: add EXT_transform_feedback to extension list

14 years agomesa: initial data structures for transform feedback
Brian Paul [Wed, 31 Mar 2010 01:59:51 +0000 (19:59 -0600)]
mesa: initial data structures for transform feedback

14 years agomesa: simplify query code with get_query_binding_point()
Brian Paul [Tue, 30 Mar 2010 17:33:51 +0000 (11:33 -0600)]
mesa: simplify query code with get_query_binding_point()

14 years agointel: Bump intel driver date to later than the date on the 7.8 branch
Ian Romanick [Tue, 30 Mar 2010 22:38:03 +0000 (15:38 -0700)]
intel: Bump intel driver date to later than the date on the 7.8 branch

14 years agodri: Drop another unused __DRIscreen field
Kristian Høgsberg [Tue, 30 Mar 2010 18:41:27 +0000 (14:41 -0400)]
dri: Drop another unused __DRIscreen field

14 years agodri: Drop the unused dummyContext
Kristian Høgsberg [Tue, 30 Mar 2010 18:38:52 +0000 (14:38 -0400)]
dri: Drop the unused dummyContext

14 years agodri: Drop an unused __DRIcontext field
Kristian Høgsberg [Tue, 30 Mar 2010 18:37:02 +0000 (14:37 -0400)]
dri: Drop an unused __DRIcontext field

14 years agointel: Remove redundant fields from struct intel_context
Kristian Høgsberg [Tue, 30 Mar 2010 18:32:10 +0000 (14:32 -0400)]
intel: Remove redundant fields from struct intel_context

All these pointers are in the __DRIcontext struct, which we point to.

14 years agointel: Use fb->Height when flipping read buffer orientation
Kristian Høgsberg [Tue, 30 Mar 2010 18:05:47 +0000 (14:05 -0400)]
intel: Use fb->Height when flipping read buffer orientation

With DRI2, x and y are always zero and fb->Height is always up to date
with the drawable height.

14 years agor300/compiler: Unbreak DDX/DDY.
Corbin Simpson [Tue, 30 Mar 2010 17:43:51 +0000 (10:43 -0700)]
r300/compiler: Unbreak DDX/DDY.

Fixes progs/glsl/deriv.

14 years agogallivm: cleanup the code (found by coverity)
Zack Rusin [Tue, 30 Mar 2010 12:55:17 +0000 (08:55 -0400)]
gallivm: cleanup the code (found by coverity)

the condition can't be false, declerations are ok even if we don't
emit any.

14 years agodrisw: fix use after free (bug 27370)
George Sapountzis [Tue, 30 Mar 2010 10:09:16 +0000 (13:09 +0300)]
drisw: fix use after free (bug 27370)

14 years agoMerge branch '7.8'
Michel Dänzer [Tue, 30 Mar 2010 10:01:31 +0000 (12:01 +0200)]
Merge branch '7.8'

Conflicts:
Makefile
src/mesa/main/version.h

Resolved by keeping version strings from master (also in the intel driver).

14 years agoglx/dri2: Fix debug build with old dri2proto.
Michel Dänzer [Tue, 30 Mar 2010 09:50:13 +0000 (11:50 +0200)]
glx/dri2: Fix debug build with old dri2proto.

Apparently the higher compiler optimization level in non-debug builds was
eliminating the unused functions referencing the unresolved DRI2 symbols...

14 years agost/dri: Fix a memory leak in dri1_init_screen.
Chia-I Wu [Tue, 30 Mar 2010 07:41:31 +0000 (15:41 +0800)]
st/dri: Fix a memory leak in dri1_init_screen.

Free the returned configs upon errors.

14 years agomesa/es: Use core mesa's mfeatures.h.
Chia-I Wu [Tue, 30 Mar 2010 05:19:59 +0000 (13:19 +0800)]
mesa/es: Use core mesa's mfeatures.h.

Remove mfeatures_es1.h and mfeatures_es2.h.  Build the overlay with
either FEATURE_ES1 or FEATURE_ES2 defined.

14 years agomesa: Add missing features.
Chia-I Wu [Tue, 30 Mar 2010 05:13:20 +0000 (13:13 +0800)]
mesa: Add missing features.

Add features tested in the code but missing from mfeatures.h.

This also fixes some tests of features.  They should be tested with
"#if", not "#ifdef".

14 years agomesa: Add umbrella features.
Chia-I Wu [Tue, 30 Mar 2010 04:38:25 +0000 (12:38 +0800)]
mesa: Add umbrella features.

Add FEATURE_GL, FEATURE_ES1, and FEATURE_ES2 for OpenGL, OpenGL ES 1.x,
and OpenGL ES 2.x respectively.  Define individual features through the
new umbrella features.  There is no real change introduced by this
commit.

14 years agodrisw: Remove unnecessary header.
Vinson Lee [Tue, 30 Mar 2010 06:11:26 +0000 (23:11 -0700)]
drisw: Remove unnecessary header.

14 years agoswrastg: Silence unused value warning.
Vinson Lee [Tue, 30 Mar 2010 05:54:35 +0000 (22:54 -0700)]
swrastg: Silence unused value warning.

14 years agor300g: Remove unused variable.
Vinson Lee [Tue, 30 Mar 2010 05:19:28 +0000 (22:19 -0700)]
r300g: Remove unused variable.

14 years agor300g: Remove unnecessary header.
Vinson Lee [Tue, 30 Mar 2010 05:11:37 +0000 (22:11 -0700)]
r300g: Remove unnecessary header.

14 years agor300g: Bind constantbuf to Draw immediately, don't wait for render.
Corbin Simpson [Mon, 29 Mar 2010 22:10:18 +0000 (15:10 -0700)]
r300g: Bind constantbuf to Draw immediately, don't wait for render.

Doesn't hurt, and reduces code duplication.

14 years agost/glx: Remove a wrong assertion in choose_pixel_format.
Chia-I Wu [Tue, 30 Mar 2010 01:17:20 +0000 (09:17 +0800)]
st/glx: Remove a wrong assertion in choose_pixel_format.

There are X visuals that Gallium or the code does not support.  We could
not assert the color format to be supported.  Return PIPE_FORMAT_NONE in
such cases and let the caller handle it.

14 years agogallivm: use constant size array, added assertion check
Brian Paul [Tue, 30 Mar 2010 00:13:31 +0000 (18:13 -0600)]
gallivm: use constant size array, added assertion check

14 years agoAdd test case for lp_bld_printf()
Chris Li [Fri, 26 Mar 2010 17:24:34 +0000 (10:24 -0700)]
Add test case for lp_bld_printf()

14 years agogallivm: added lp_bld_printf() function
Chris Li [Fri, 26 Mar 2010 17:23:03 +0000 (10:23 -0700)]
gallivm: added lp_bld_printf() function

14 years agoprogs/glsl: Add workarounds for Apple GLSL compiler crash.
Vinson Lee [Mon, 29 Mar 2010 21:56:12 +0000 (14:56 -0700)]
progs/glsl: Add workarounds for Apple GLSL compiler crash.

fsraytrace and vsraytrace were crashing on Mac OS X 10.6.3 in the Apple
GLSL compiler function TPPStreamCompiler::assignOperands. Removing some
const qualifers made the crashes go away.

14 years agoprogs/glsl: Remove inline keyword.
Vinson Lee [Mon, 29 Mar 2010 20:58:39 +0000 (13:58 -0700)]
progs/glsl: Remove inline keyword.

Fixes MSVC build.

14 years agoprogs/gallium/python: Get tri.py sample working again.
José Fonseca [Mon, 29 Mar 2010 20:10:03 +0000 (21:10 +0100)]
progs/gallium/python: Get tri.py sample working again.

14 years agost/python: Update for util_draw_vertex_buffer changes.
José Fonseca [Mon, 29 Mar 2010 20:09:37 +0000 (21:09 +0100)]
st/python: Update for util_draw_vertex_buffer changes.

14 years agost/python: Move surface read/write methods to context.
José Fonseca [Mon, 29 Mar 2010 20:09:21 +0000 (21:09 +0100)]
st/python: Move surface read/write methods to context.

14 years agogallivm: make sure that the alloca's are the very first thing in the function
Zack Rusin [Mon, 29 Mar 2010 20:17:17 +0000 (16:17 -0400)]
gallivm: make sure that the alloca's are the very first thing in the function

otherwise mem2reg can't put them in registers

14 years agost/dri/sw: add drisw_api similarly to dri1_api
George Sapountzis [Mon, 29 Mar 2010 18:06:54 +0000 (21:06 +0300)]
st/dri/sw: add drisw_api similarly to dri1_api

I am pretty sure that this is in gallium spirit, so commit. Thanks to Chia-I
for suggesting this.

14 years agows/sw/dri: s/xm/dri_sw/
George Sapountzis [Mon, 29 Mar 2010 18:06:53 +0000 (21:06 +0300)]
ws/sw/dri: s/xm/dri_sw/

14 years agodocs: fix 7.7.1 release date
Brian Paul [Mon, 29 Mar 2010 18:01:28 +0000 (12:01 -0600)]
docs: fix 7.7.1 release date

(cherry picked from commit e6f5ca0fa3bff975f2acb3a825d77f095bc9f43e)

14 years agoprogs/glsl: improve the mouse drag/rotate code a little
Brian Paul [Mon, 29 Mar 2010 17:44:39 +0000 (11:44 -0600)]
progs/glsl: improve the mouse drag/rotate code a little

14 years agoprogs/glsl: let the mouse rotate the scene
RALOVICH, Kristóf [Sun, 28 Mar 2010 02:11:29 +0000 (22:11 -0400)]
progs/glsl: let the mouse rotate the scene

14 years agoglsl: avoid using rcp in length() functions
Brian Paul [Mon, 29 Mar 2010 17:31:02 +0000 (11:31 -0600)]
glsl: avoid using rcp in length() functions

See prev commit for related info.

14 years agoglsl: remove rcp from sqrt()
Brian Paul [Mon, 29 Mar 2010 17:21:26 +0000 (11:21 -0600)]
glsl: remove rcp from sqrt()

Per a patch from Marek Olšák, we can simply multiply the incoming
value by 1/sqrt(x) instead of using rcp.

We're keeping the x==0 check to avoid generating NaN for sqrt(0).

14 years agoRevert "python: Temporarily disable python state tracker until transfers are done...
José Fonseca [Mon, 29 Mar 2010 16:52:10 +0000 (17:52 +0100)]
Revert "python: Temporarily disable python state tracker until transfers are done by contexts"

This reverts commit 50a778661930ec7aa875a9c5235e9910143ec700.

14 years agoi965g: util_format_is_compressed() -> util_format_is_s3tc().
José Fonseca [Mon, 29 Mar 2010 16:31:16 +0000 (17:31 +0100)]
i965g: util_format_is_compressed() -> util_format_is_s3tc().

14 years agomesa/st: util_format_is_compressed() -> util_format_is_s3tc().
José Fonseca [Mon, 29 Mar 2010 16:30:56 +0000 (17:30 +0100)]
mesa/st: util_format_is_compressed() -> util_format_is_s3tc().

14 years agosvga: util_format_is_compressed() -> util_format_is_s3tc().
José Fonseca [Mon, 29 Mar 2010 16:30:35 +0000 (17:30 +0100)]
svga: util_format_is_compressed() -> util_format_is_s3tc().

14 years agor300: UTIL_FORMAT_LAYOUT_COMPRESSED -> UTIL_FORMAT_LAYOUT_S3TC.
José Fonseca [Mon, 29 Mar 2010 16:30:09 +0000 (17:30 +0100)]
r300: UTIL_FORMAT_LAYOUT_COMPRESSED -> UTIL_FORMAT_LAYOUT_S3TC.

14 years agoutil: Distinguish between the different compression formats.
José Fonseca [Mon, 29 Mar 2010 16:29:27 +0000 (17:29 +0100)]
util: Distinguish between the different compression formats.

In particular, all current uses of util_format_is_compressed() actually
mean s3tc.

14 years agosoftpipe: Map GS constants, too.
Michal Krol [Tue, 23 Mar 2010 15:21:03 +0000 (16:21 +0100)]
softpipe: Map GS constants, too.

14 years agor300g: print configurable debugging info on non-debug builds
Marek Olšák [Sun, 28 Mar 2010 16:38:30 +0000 (18:38 +0200)]
r300g: print configurable debugging info on non-debug builds

14 years agomesa: Add 7.8 release MD5 sums
Ian Romanick [Sun, 28 Mar 2010 23:35:56 +0000 (16:35 -0700)]
mesa: Add 7.8 release MD5 sums

14 years agointel: Bump intel driver date to reflect status as 2010Q1 release
Ian Romanick [Sun, 28 Mar 2010 23:33:53 +0000 (16:33 -0700)]
intel: Bump intel driver date to reflect status as 2010Q1 release

14 years agomesa: set version string to 7.8
Ian Romanick [Sun, 28 Mar 2010 23:31:08 +0000 (16:31 -0700)]
mesa: set version string to 7.8

Also set the correct release date.

14 years agomesa: Add 7.7.1 release MD5 sums
Ian Romanick [Sun, 28 Mar 2010 23:25:47 +0000 (16:25 -0700)]
mesa: Add 7.7.1 release MD5 sums
(cherry picked from commit 0c88e340499c961cc7a06107a727710a67e280ed)

14 years agomesa: set version string to 7.7.1
Ian Romanick [Sun, 28 Mar 2010 23:22:44 +0000 (16:22 -0700)]
mesa: set version string to 7.7.1

Also set the correct release date.
(cherry picked from commit 663642b435af2f8ab4b16360783eb367f42486c3)

14 years agoswrast: Remove unnecessary header.
Vinson Lee [Sun, 28 Mar 2010 22:57:23 +0000 (15:57 -0700)]
swrast: Remove unnecessary header.

14 years agoprogs: Comment out gallium/raw/SConscript from progs/SConscript.
Vinson Lee [Sun, 28 Mar 2010 20:49:00 +0000 (13:49 -0700)]
progs: Comment out gallium/raw/SConscript from progs/SConscript.

Commit db5c2235d1accc2adcf1746aec2342bfa67237ba broke the default SCons
build.
NameError: name 'graw' is not defined:

This patch allows the default SCons build to work again until a proper
fix is available.

14 years agoprogs/raw: add note about accessing utility functions
Keith Whitwell [Sun, 28 Mar 2010 17:42:26 +0000 (10:42 -0700)]
progs/raw: add note about accessing utility functions

14 years agows/xlib: Call XFlush after PutImage
Keith Whitwell [Sun, 28 Mar 2010 17:39:46 +0000 (10:39 -0700)]
ws/xlib: Call XFlush after PutImage

Want to see the results.

14 years agogallium: new raw gallium interface to support standalone tests
Keith Whitwell [Sun, 28 Mar 2010 16:53:58 +0000 (09:53 -0700)]
gallium: new raw gallium interface to support standalone tests

Provides basic window system integration behind a simple interface,
allowing tests to be written without dependency on either the driver
or window system.

With a lot of work, could turn into something like glut for gallium.

14 years agoaux/tgsi: fix some minor glitches in string routines
Keith Whitwell [Sun, 28 Mar 2010 16:30:55 +0000 (09:30 -0700)]
aux/tgsi: fix some minor glitches in string routines

Not sure why we are open-coding these rather than using standard
library functions.

14 years agost/python: updates for recent interface changes
Keith Whitwell [Sat, 27 Mar 2010 00:19:45 +0000 (17:19 -0700)]
st/python: updates for recent interface changes

Still problems at runtime with vertex elements, etc.

Building still disabled.

14 years agodrisw: probably better hack for stride and some comments
George Sapountzis [Sun, 28 Mar 2010 16:30:03 +0000 (19:30 +0300)]
drisw: probably better hack for stride and some comments

14 years agoutil: Update MSDN links.
José Fonseca [Sun, 28 Mar 2010 16:00:46 +0000 (17:00 +0100)]
util: Update MSDN links.

14 years agogallium/docs: fix formatting mistakes in d3d11ddi.txt
Luca Barbieri [Sun, 28 Mar 2010 14:41:54 +0000 (16:41 +0200)]
gallium/docs: fix formatting mistakes in d3d11ddi.txt

14 years agogallium/docs: add comparison between Gallium and Direct3D 11 DDI interfaces
Luca Barbieri [Sat, 27 Mar 2010 22:41:15 +0000 (23:41 +0100)]
gallium/docs: add comparison between Gallium and Direct3D 11 DDI interfaces

Feel free to check it and improve it if necessary.

14 years agor300g: handle TGSI_OPCODE_RET as END
Marek Olšák [Sat, 27 Mar 2010 23:07:45 +0000 (00:07 +0100)]
r300g: handle TGSI_OPCODE_RET as END

14 years agor300g: disable cliprects
Marek Olšák [Sat, 27 Mar 2010 21:39:54 +0000 (22:39 +0100)]
r300g: disable cliprects

Thanks to Nicolai Hähnle for explaining this register!

14 years agoprogs/tests: Remove duplicate texcompress2 in SConscript.
Vinson Lee [Sat, 27 Mar 2010 21:40:41 +0000 (14:40 -0700)]
progs/tests: Remove duplicate texcompress2 in SConscript.

14 years agodrisw: update comment
George Sapountzis [Sat, 27 Mar 2010 21:34:42 +0000 (23:34 +0200)]
drisw: update comment

14 years agor300g: print errors even on non-debug builds
Marek Olšák [Sat, 27 Mar 2010 21:25:13 +0000 (22:25 +0100)]
r300g: print errors even on non-debug builds

We really need to get these into bug reports.

14 years agoi965g: Add brw_winsys_debug.c to SCons build.
Vinson Lee [Sat, 27 Mar 2010 21:25:03 +0000 (14:25 -0700)]
i965g: Add brw_winsys_debug.c to SCons build.

14 years agoidentity: Add id_drm.c to SCons build.
Vinson Lee [Sat, 27 Mar 2010 17:07:14 +0000 (10:07 -0700)]
identity: Add id_drm.c to SCons build.

This was missed in commit f7cbaae13d67c55abe81ac230de37f564365099f.
(cherry picked from commit 02ee7c29502966dffa44243bfc8c20c15907b880)

14 years agoegl: Make _eglBindContextToSurfaces more readable.
Chia-I Wu [Sat, 27 Mar 2010 19:04:38 +0000 (03:04 +0800)]
egl: Make _eglBindContextToSurfaces more readable.

There is no effective changes given how the function is called.  It is
still not trivial, but it should be more readable and resemble
_eglBindContextToThread a lot.

14 years agoegl: Always return the previously bound context.
Chia-I Wu [Sat, 27 Mar 2010 18:11:16 +0000 (02:11 +0800)]
egl: Always return the previously bound context.

When a newly bound context is the same as the previously bound one,
_eglBindContextToThread should still return the context instead of NULL.
This gives the driver a chance to flush the context.

14 years agodrisw: add comment to libGL about stride
George Sapountzis [Sat, 27 Mar 2010 19:35:25 +0000 (21:35 +0200)]
drisw: add comment to libGL about stride

14 years agodrisw: make stride issue profound
George Sapountzis [Sat, 27 Mar 2010 18:32:52 +0000 (20:32 +0200)]
drisw: make stride issue profound

14 years agoidentity: Add id_drm.c to SCons build.
Vinson Lee [Sat, 27 Mar 2010 17:07:14 +0000 (10:07 -0700)]
identity: Add id_drm.c to SCons build.

This was missed in commit f7cbaae13d67c55abe81ac230de37f564365099f.

14 years agost/egl: Fix missing symbols.
Chia-I Wu [Sat, 27 Mar 2010 14:25:26 +0000 (22:25 +0800)]
st/egl: Fix missing symbols.

ximage backend calls gallium_wrap_screen, which requires libidentity.a
and libtrace.a.  There are also some missing symbols in i965 due to the
use of sw wrapper.

14 years agomesa: move/update hash function comments
Brian Paul [Sat, 27 Mar 2010 14:59:17 +0000 (08:59 -0600)]
mesa: move/update hash function comments

(cherry picked from commit 535742d75f0096b22d1b8ff203ae561167af18f7)

14 years agomesa: fix deadlock in _mesa_HashFindFreeKeyBlock()
Brian Paul [Sat, 27 Mar 2010 14:58:59 +0000 (08:58 -0600)]
mesa: fix deadlock in _mesa_HashFindFreeKeyBlock()

Fixes fd.o bug 27340.
(cherry picked from commit 8fe3b3f66ae57a1a6eca7f6dcb0455e14ad92075)