Re: [Mesa-dev] [PATCH] softpipe: allocate tile data on demand

2010-09-27 Thread Brian Paul
On 09/24/2010 12:42 PM, Luca Barbieri wrote: In any case, this change causes a ton of conformance failures. Several piglit tests in the "general" category also fail. Yes, sorry, I actually run piglit, but twice on the same binary... The problem was that last_tile_addr must be invalidated on an

Re: [Mesa-dev] [PATCH] softpipe: allocate tile data on demand

2010-09-24 Thread Luca Barbieri
> In any case, this change causes a ton of conformance failures. Several > piglit tests in the "general" category also fail. Yes, sorry, I actually run piglit, but twice on the same binary... The problem was that last_tile_addr must be invalidated on any change including flushes. This was automat

[Mesa-dev] [PATCH] softpipe: allocate tile data on demand (v2)

2010-09-24 Thread Luca Barbieri
Changes in v2: - Invalidate last_tile_addr on any change, fixing regressions - Correct coding style Currently softpipe ends up allocating more than 200 MB of memory for each context due to the tile caches. Even worse, this memory is all explicitly cleared, which means that the kernel must actuall

Re: [Mesa-dev] [PATCH] softpipe: allocate tile data on demand

2010-09-24 Thread Brian Paul
On 09/24/2010 07:20 AM, Luca Barbieri wrote: Currently softpipe ends up allocating more than 200 MB of memory for each context due to the tile caches. Even worse, this memory is all explicitly cleared, which means that the kernel must actually back it with physical RAM right away. This change a

[Mesa-dev] [PATCH] softpipe: allocate tile data on demand

2010-09-24 Thread Luca Barbieri
Currently softpipe ends up allocating more than 200 MB of memory for each context due to the tile caches. Even worse, this memory is all explicitly cleared, which means that the kernel must actually back it with physical RAM right away. This change allocates tile memory on demand. --- src/galliu

[Mesa-dev] [PATCH] softpipe: allocate tile data on demand

2010-09-24 Thread Luca Barbieri
Currently softpipe ends up allocating more than 200 MB of memory for each context due to the tile caches. Even worse, this memory is all explicitly cleared, which means that the kernel must actually back it with physical RAM right away. This change allocates tile memory on demand. --- src/galliu