mesa/src/intel
Rafael Antognolli 27478ce00e anv/tests: Fix block_pool_no_free test.
There were 2 problems with this test.

First it was comparing highest, which was -1, with an uint32_t. So the
current value would never be higher than that, and the assert would
always be false. It just never reached this point because of the next
problem.

It was always looking for the highest value of each thread and storing
it in thread_max. So a test case like this wouldn't work:

[Thread]: [Blocks]
   [0]: [0, 32, 64, 96]
   [1]: [128, 160, 192, 224]
   [2]: [256, 288, 320, 352]

Not only that would skip values and iterate only over thread number 2,
instead of walking through all of them, but thread_max was also
initialized to -1. And then compared to unsigned blocks[i][next[i].

We fix that by getting the smallest value of each thread, and checking
if it is lower than thread_min, which is initialized to INT32_MAX. And
then we end up walking through all the blocks of all threads. We also
change "blocks" to be int32_t instead of uint32_t, since in some places
(alloc_blocks) it was already referenced as int32_t, and that fixes the
comparison to -1.

v2:
 - keep highest initialized to -1, and change blocks to be int32_t.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
2019-01-17 15:05:58 -08:00
..
blorp intel/blorp: Add two more filter modes 2019-01-14 10:16:52 -06:00
common intel/icl: Set way_size_per_bank to 4 2018-11-26 15:11:36 -08:00
compiler i965: Drop mark_surface_used mechanism. 2019-01-13 09:35:32 -08:00
dev intel: Introducing Whiskey Lake platform 2018-10-11 10:02:40 -07:00
genxml intel/genxml: Add register for object preemption. 2018-12-14 09:40:27 -08:00
isl intel/isl: move tiled_memcpy static libs from i965 to isl 2019-01-10 08:02:30 +02:00
tools src/intel: use new hash table and set creation helpers 2019-01-14 10:49:33 -08:00
vulkan anv/tests: Fix block_pool_no_free test. 2019-01-17 15:05:58 -08:00
Android.blorp.mk
Android.common.mk
Android.compiler.mk
Android.dev.mk android: Use local i915_drm.h rather than the system one. 2018-03-23 10:05:02 -07:00
Android.genxml.mk intel/genxml/icl: Generate packing headers 2018-02-15 16:14:55 -08:00
Android.isl.mk intel/isl: move tiled_memcpy static libs from i965 to isl 2019-01-10 08:02:30 +02:00
Android.mk intel: Add missing includes for building on Android 2018-03-06 00:14:22 -08:00
Android.vulkan.mk anv/android: we need git_sha1.h in include paths 2018-10-12 07:29:03 +03:00
Makefile.am configure: allow building with python3 2018-10-31 19:15:50 +00:00
Makefile.blorp.am
Makefile.common.am
Makefile.compiler.am i965/vec4/dce: Don't narrow the write mask if the flags are used 2018-12-17 13:47:06 -08:00
Makefile.dev.am intel: Split gen_device_info out into libintel_dev 2018-03-05 09:47:37 -08:00
Makefile.genxml.am
Makefile.isl.am intel/isl: move tiled_memcpy static libs from i965 to isl 2019-01-10 08:02:30 +02:00
Makefile.sources intel/isl: move tiled_memcpy static libs from i965 to isl 2019-01-10 08:02:30 +02:00
Makefile.tools.am intel/tools: new i965_disasm tool 2018-08-29 11:19:55 -07:00
Makefile.vulkan.am anv/autotools: make sure tests link with -msse2 2018-12-31 17:28:21 +01:00
meson.build intel: compiler option msse2 and mstackrealign 2018-09-07 13:45:46 +01:00