<feed xmlns='http://www.w3.org/2005/Atom'>
<title>external_mesa3d/src/util, branch replicant-6.0</title>
<subtitle>external/mesa3d
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/'/>
<entry>
<title>util: Include string.h in bitscan.h.</title>
<updated>2016-11-01T13:21:51+00:00</updated>
<author>
<name>Vinson Lee</name>
<email>vlee@freedesktop.org</email>
</author>
<published>2016-10-20T01:03:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=5ef25047592ad67222e2473e5511db577659dc21'/>
<id>5ef25047592ad67222e2473e5511db577659dc21</id>
<content type='text'>
Fix build error with clang.

  Compiling src/compiler/glsl/link_varyings.cpp ...
In file included from src/compiler/glsl/link_varyings.cpp:33:
In file included from src/compiler/glsl/glsl_symbol_table.h:34:
In file included from src/compiler/glsl/ir.h:33:
In file included from src/compiler/glsl_types.h:29:
/usr/include/string.h:518:12: error: exception specification in declaration does not match previous declaration
extern int ffs (int __i) __THROW __attribute__ ((__const__));
           ^
src/util/bitscan.h:51:13: note: expanded from macro 'ffs'
            ^
src/util/bitscan.h:96:18: note: previous declaration is here
   const int i = ffs(*mask) - 1;
                 ^
src/util/bitscan.h:51:13: note: expanded from macro 'ffs'
            ^

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97952
Signed-off-by: Vinson Lee &lt;vlee@freedesktop.org&gt;
Reviewed-by: Timothy Arceri &lt;timothy.arceri@collabora.com&gt;
(cherry picked from commit 889ee4da05400687a6c5296a7632dc26f1d61924)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix build error with clang.

  Compiling src/compiler/glsl/link_varyings.cpp ...
In file included from src/compiler/glsl/link_varyings.cpp:33:
In file included from src/compiler/glsl/glsl_symbol_table.h:34:
In file included from src/compiler/glsl/ir.h:33:
In file included from src/compiler/glsl_types.h:29:
/usr/include/string.h:518:12: error: exception specification in declaration does not match previous declaration
extern int ffs (int __i) __THROW __attribute__ ((__const__));
           ^
src/util/bitscan.h:51:13: note: expanded from macro 'ffs'
            ^
src/util/bitscan.h:96:18: note: previous declaration is here
   const int i = ffs(*mask) - 1;
                 ^
src/util/bitscan.h:51:13: note: expanded from macro 'ffs'
            ^

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97952
Signed-off-by: Vinson Lee &lt;vlee@freedesktop.org&gt;
Reviewed-by: Timothy Arceri &lt;timothy.arceri@collabora.com&gt;
(cherry picked from commit 889ee4da05400687a6c5296a7632dc26f1d61924)
</pre>
</div>
</content>
</entry>
<entry>
<title>vulkan: add vk_alloc.h shared allocation inlines.</title>
<updated>2016-10-18T23:05:26+00:00</updated>
<author>
<name>Dave Airlie</name>
<email>airlied@redhat.com</email>
</author>
<published>2016-10-14T03:19:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=0cfd428aefe13441e93cc6f57d70f0b282ad2b21'/>
<id>0cfd428aefe13441e93cc6f57d70f0b282ad2b21</id>
<content type='text'>
vulkan allocation allows for overriding the allocator used,
add some macros for anv/radv to share for this.

Acked-by: Jason Ekstrand &lt;jason@jlekstrand.net&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
vulkan allocation allows for overriding the allocator used,
add some macros for anv/radv to share for this.

Acked-by: Jason Ekstrand &lt;jason@jlekstrand.net&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>util: move min/max/clamp macros to util macros.h</title>
<updated>2016-10-18T23:05:25+00:00</updated>
<author>
<name>Dave Airlie</name>
<email>airlied@redhat.com</email>
</author>
<published>2016-10-14T03:10:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=78bce52f9a57ea020ef7b9386216efe151be9542'/>
<id>78bce52f9a57ea020ef7b9386216efe151be9542</id>
<content type='text'>
Although the vulkan drivers include mesa macros.h, for
radv I'd like to move away from that.

Reviewed-by: Nicolai Hähnle &lt;nicolai.haehnle@amd.com&gt;
Acked-by: Jason Ekstrand &lt;jason@jlekstrand.net&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Although the vulkan drivers include mesa macros.h, for
radv I'd like to move away from that.

Reviewed-by: Nicolai Hähnle &lt;nicolai.haehnle@amd.com&gt;
Acked-by: Jason Ekstrand &lt;jason@jlekstrand.net&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>util: add vector util code.</title>
<updated>2016-10-18T23:05:25+00:00</updated>
<author>
<name>Dave Airlie</name>
<email>airlied@redhat.com</email>
</author>
<published>2016-10-14T02:55:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=008f54f63af51638ce36e47ca971714953f142f8'/>
<id>008f54f63af51638ce36e47ca971714953f142f8</id>
<content type='text'>
This is ported from anv, both anv and radv can share this.

Reviewed-by: Nicolai Hähnle &lt;nicolai.haehnle@amd.com&gt;
Acked-by: Jason Ekstrand &lt;jason@jlekstrand.net&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is ported from anv, both anv and radv can share this.

Reviewed-by: Nicolai Hähnle &lt;nicolai.haehnle@amd.com&gt;
Acked-by: Jason Ekstrand &lt;jason@jlekstrand.net&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>util: remove unused variable</title>
<updated>2016-10-07T10:24:50+00:00</updated>
<author>
<name>Timothy Arceri</name>
<email>timothy.arceri@collabora.com</email>
</author>
<published>2016-10-07T10:10:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=965ebc8b286afee827b820479cc1714a2aeb46cc'/>
<id>965ebc8b286afee827b820479cc1714a2aeb46cc</id>
<content type='text'>
Also initialise page at declaration.

Reviewed-by: Nicolai Hähnle &lt;nicolai.haehnle@amd.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also initialise page at declaration.

Reviewed-by: Nicolai Hähnle &lt;nicolai.haehnle@amd.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>util/slab: re-design to allow migration between pools (v3)</title>
<updated>2016-10-05T13:40:40+00:00</updated>
<author>
<name>Nicolai Hähnle</name>
<email>nicolai.haehnle@amd.com</email>
</author>
<published>2016-09-27T16:30:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=d8cff811dfb0172684fe3ec01c98fc847b0c17a7'/>
<id>d8cff811dfb0172684fe3ec01c98fc847b0c17a7</id>
<content type='text'>
This is basically a re-write of the slab allocator into a design where
multiple child pools are linked to a parent pool. The intention is that
every (GL, pipe) context has its own child pool, while the corresponding
parent pool is held by the winsys or screen, or possibly the GL share group.

The fast path is still used when objects are freed by the same child pool
that allocated them. However, it is now also possible to free an object in a
different pool, as long as they belong to the same parent. Objects also
survive the destruction of the (child) pool from which they were allocated.

The slow path will return freed objects to the child pool from which they
were originally allocated. If that child pool was destroyed, the corresponding
page is considered an orphan and will be freed once all objects in it have
been freed.

This allocation pattern is required for pipe_transfers that correspond to
(GL) buffer object mappings when the mapping is created in one context
which is later destroyed while other contexts of the same share group live
on -- see the bug report referenced below.

Note that individual drivers do need to migrate to the new interface in
order to benefit and fix the bug.

v2: use singly-linked lists everywhere
v3: use p_atomic_set for page-&gt;u.num_remaining

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97894
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is basically a re-write of the slab allocator into a design where
multiple child pools are linked to a parent pool. The intention is that
every (GL, pipe) context has its own child pool, while the corresponding
parent pool is held by the winsys or screen, or possibly the GL share group.

The fast path is still used when objects are freed by the same child pool
that allocated them. However, it is now also possible to free an object in a
different pool, as long as they belong to the same parent. Objects also
survive the destruction of the (child) pool from which they were allocated.

The slow path will return freed objects to the child pool from which they
were originally allocated. If that child pool was destroyed, the corresponding
page is considered an orphan and will be freed once all objects in it have
been freed.

This allocation pattern is required for pipe_transfers that correspond to
(GL) buffer object mappings when the mapping is created in one context
which is later destroyed while other contexts of the same share group live
on -- see the bug report referenced below.

Note that individual drivers do need to migrate to the new interface in
order to benefit and fix the bug.

v2: use singly-linked lists everywhere
v3: use p_atomic_set for page-&gt;u.num_remaining

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97894
</pre>
</div>
</content>
</entry>
<entry>
<title>util: use GCC atomic intrinsics with explicit memory model</title>
<updated>2016-10-05T13:39:39+00:00</updated>
<author>
<name>Nicolai Hähnle</name>
<email>nicolai.haehnle@amd.com</email>
</author>
<published>2016-10-04T14:06:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=8915f0c0de84fa593ca6c31518c1292f94b3bb7b'/>
<id>8915f0c0de84fa593ca6c31518c1292f94b3bb7b</id>
<content type='text'>
This is motivated by the fact that p_atomic_read and p_atomic_set may
somewhat surprisingly not do the right thing in the old version: while
stores and loads are de facto atomic at least on x86, the compiler may
apply re-ordering and speculation quite liberally. Basically, the old
version uses the "relaxed" memory ordering.

The new ordering always uses acquire/release ordering. This is the
strongest possible memory ordering that doesn't require additional
fence instructions on x86. (And the only stronger ordering is
"sequentially consistent", which is usually more than you need anyway.)

I would feel more comfortable if p_atomic_set/read in the old
implementation were at least using volatile loads and stores, but I
don't see a way to get there without typeof (which we cannot use here
since the code is compiled with -std=c99).

Eventually, we should really just move to something that is based on
the atomics in C11 / C++11.

Acked-by: Marek Olšák &lt;marek.olsak@amd.com&gt;
Reviewed-by: Emil Velikov &lt;emil.velikov@collabora.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is motivated by the fact that p_atomic_read and p_atomic_set may
somewhat surprisingly not do the right thing in the old version: while
stores and loads are de facto atomic at least on x86, the compiler may
apply re-ordering and speculation quite liberally. Basically, the old
version uses the "relaxed" memory ordering.

The new ordering always uses acquire/release ordering. This is the
strongest possible memory ordering that doesn't require additional
fence instructions on x86. (And the only stronger ordering is
"sequentially consistent", which is usually more than you need anyway.)

I would feel more comfortable if p_atomic_set/read in the old
implementation were at least using volatile loads and stores, but I
don't see a way to get there without typeof (which we cannot use here
since the code is compiled with -std=c99).

Eventually, we should really just move to something that is based on
the atomics in C11 / C++11.

Acked-by: Marek Olšák &lt;marek.olsak@amd.com&gt;
Reviewed-by: Emil Velikov &lt;emil.velikov@collabora.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>util: remove Sun C Compiler support</title>
<updated>2016-09-23T06:17:16+00:00</updated>
<author>
<name>Timothy Arceri</name>
<email>timothy.arceri@collabora.com</email>
</author>
<published>2016-09-07T04:28:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=4eb0e90c6b59f9c5b789b33078afdec1975838af'/>
<id>4eb0e90c6b59f9c5b789b33078afdec1975838af</id>
<content type='text'>
Support for this compiler was dropped in 51564f04b77e6

Acked-by: Edward O'Callaghan &lt;funfunctor@folklore1984.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Support for this compiler was dropped in 51564f04b77e6

Acked-by: Edward O'Callaghan &lt;funfunctor@folklore1984.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>u_endian: add android to glibc clause</title>
<updated>2016-09-13T00:04:13+00:00</updated>
<author>
<name>Dave Airlie</name>
<email>airlied@redhat.com</email>
</author>
<published>2016-09-12T01:21:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=0fe9152868fd7429aca63c58a0930542b8a95219'/>
<id>0fe9152868fd7429aca63c58a0930542b8a95219</id>
<content type='text'>
Tested-by: Mauro Rossi &lt;issor.oruam@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Tested-by: Mauro Rossi &lt;issor.oruam@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mesa/glsl: Move string_to_uint_map into the util folder</title>
<updated>2016-09-12T00:48:35+00:00</updated>
<author>
<name>Thomas Helland</name>
<email>thomashelland90@gmail.com</email>
</author>
<published>2016-08-16T20:10:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/external_mesa3d/commit/?id=08c5b10ae904231d887f9b6c37694c0e03939a28'/>
<id>08c5b10ae904231d887f9b6c37694c0e03939a28</id>
<content type='text'>
This clears the last bits of the usecases of the hash table
located in mesa/program, allowing us to remove it.

V2: Rebase on top of changes to Makefile.sources

Signed-off-by: Thomas Helland &lt;thomashelland90@gmail.com&gt;
Reviewed-by: Timothy Arceri &lt;timothy.arceri@collabora.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This clears the last bits of the usecases of the hash table
located in mesa/program, allowing us to remove it.

V2: Rebase on top of changes to Makefile.sources

Signed-off-by: Thomas Helland &lt;thomashelland90@gmail.com&gt;
Reviewed-by: Timothy Arceri &lt;timothy.arceri@collabora.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
