<feed xmlns='http://www.w3.org/2005/Atom'>
<title>android-x86-mesa.git/src/gallium/auxiliary/cso_cache, branch r300</title>
<subtitle>Androïd/x86 port of Mesa drivers
</subtitle>
<id>https://git.hiegel.fr/cgit/android-x86-mesa.git/atom?h=r300</id>
<link rel='self' href='https://git.hiegel.fr/cgit/android-x86-mesa.git/atom?h=r300'/>
<link rel='alternate' type='text/html' href='https://git.hiegel.fr/cgit/android-x86-mesa.git/'/>
<updated>2011-02-14T20:50:07Z</updated>
<entry>
<title>gallium: always save and restore vertex buffers using cso_cache</title>
<updated>2011-02-14T20:50:07Z</updated>
<author>
<name>Marek Olšák</name>
<email>maraeo@gmail.com</email>
</author>
<published>2011-01-09T08:25:56Z</published>
<link rel='alternate' type='text/html' href='https://git.hiegel.fr/cgit/android-x86-mesa.git/commit/?id=d5062fb3a315c46d77d5c954a3e3c14be1907d33'/>
<id>urn:sha1:d5062fb3a315c46d77d5c954a3e3c14be1907d33</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cso: don't tell drivers to bind null samplers, sampler views</title>
<updated>2011-02-03T20:47:11Z</updated>
<author>
<name>Brian Paul</name>
<email>brianp@vmware.com</email>
</author>
<published>2011-02-03T18:59:59Z</published>
<link rel='alternate' type='text/html' href='https://git.hiegel.fr/cgit/android-x86-mesa.git/commit/?id=c5fb2c60bfe114d993da6c416a39c7873ab9cb3d'/>
<id>urn:sha1:c5fb2c60bfe114d993da6c416a39c7873ab9cb3d</id>
<content type='text'>
Before, the set_sampler_views() and restore_sampler_views() functions
used MAX2(old,new) to tell the driver how many samplers or sampler
views to set.  This could result in cases such as:

pipe-&gt;set_fragment_sampler_views(pipe, 4, views={foo, bar, NULL, NULL})

Many/most gallium drivers would take this as-is and set
ctx-&gt;num_sampler_views=4 and ctx-&gt;sampler_views={foo, bar, NULL, NULL, ...}.
Later, loops over ctx-&gt;num_sampler_views would have to check for null
pointers.  Worse, the number of sampler views and number of sampler CSOs
could get out of sync:

ctx-&gt;num_samplers = 2
ctx-&gt;samplers = {foo, bar, ...}
ctx-&gt;num_sampler_views = 4
ctx-&gt;sampler_views={Foo, Bar, NULL, NULL, ...}

So loops over the num_samplers could run into null sampler_views pointers
or vice versa.

This fixes a failed assertion in the SVGA driver when running the Mesa
engine demo in AA line mode (and possibly other cases).

It looks like all gallium drivers are careful to unreference views
and null-out sampler CSO pointers for the units beyond what's set
with the pipe::bind_x_sampler_states() and pipe::set_x_sampler_views()
functions.

I'll update the gallium docs to explain this as well.
</content>
</entry>
<entry>
<title>cso: refactor texture sampler and sampler view code</title>
<updated>2011-02-03T03:28:00Z</updated>
<author>
<name>Brian Paul</name>
<email>brianp@vmware.com</email>
</author>
<published>2011-02-03T03:19:51Z</published>
<link rel='alternate' type='text/html' href='https://git.hiegel.fr/cgit/android-x86-mesa.git/commit/?id=c06fa98c86abbff730a098ffbe980347b3c7d0e6'/>
<id>urn:sha1:c06fa98c86abbff730a098ffbe980347b3c7d0e6</id>
<content type='text'>
This consolidates the code duplicated between the fragment sampler
and vertex sampler functions.  Plus, it'll make adding support for
geometry shader samplers trivial.
</content>
</entry>
<entry>
<title>cso: rename fragment sampler-related fields</title>
<updated>2011-02-03T01:14:48Z</updated>
<author>
<name>Brian Paul</name>
<email>brianp@vmware.com</email>
</author>
<published>2011-02-03T01:14:46Z</published>
<link rel='alternate' type='text/html' href='https://git.hiegel.fr/cgit/android-x86-mesa.git/commit/?id=5f30e0b2316c5d0a50f1b331e7cdb4c46882e918'/>
<id>urn:sha1:5f30e0b2316c5d0a50f1b331e7cdb4c46882e918</id>
<content type='text'>
To better distinguish from vertex sampler fields.
</content>
</entry>
<entry>
<title>cso: fix loop bound in cso_set_vertex_samplers()</title>
<updated>2011-02-03T01:11:30Z</updated>
<author>
<name>Brian Paul</name>
<email>brianp@vmware.com</email>
</author>
<published>2011-02-03T01:11:27Z</published>
<link rel='alternate' type='text/html' href='https://git.hiegel.fr/cgit/android-x86-mesa.git/commit/?id=d087cfaabf386c462329fb62f54311523a89f106'/>
<id>urn:sha1:d087cfaabf386c462329fb62f54311523a89f106</id>
<content type='text'>
Before we were looping to nr_samplers, which is the number of fragment
samplers, not vertex samplers.

NOTE: This is a candidate for the 7.9 and 7.10 branches.
</content>
</entry>
<entry>
<title>cso: handle depth clamp</title>
<updated>2010-07-21T20:54:34Z</updated>
<author>
<name>Marek Olšák</name>
<email>maraeo@gmail.com</email>
</author>
<published>2010-07-21T07:14:21Z</published>
<link rel='alternate' type='text/html' href='https://git.hiegel.fr/cgit/android-x86-mesa.git/commit/?id=4460e9f0a1931c74ea364f19d7b1c458b6bc62d4'/>
<id>urn:sha1:4460e9f0a1931c74ea364f19d7b1c458b6bc62d4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>gallium/cso: check for set_vertex_sampler_views != NULL before calling it</title>
<updated>2010-07-02T14:08:22Z</updated>
<author>
<name>Brian Paul</name>
<email>brianp@vmware.com</email>
</author>
<published>2010-07-02T14:07:34Z</published>
<link rel='alternate' type='text/html' href='https://git.hiegel.fr/cgit/android-x86-mesa.git/commit/?id=e845765f0f8791a0e6c2e54b91ebf9f0e831d19f'/>
<id>urn:sha1:e845765f0f8791a0e6c2e54b91ebf9f0e831d19f</id>
<content type='text'>
Not all drivers implement this method.
Fixes regression reported by Chris Rankin and bug 28889.
</content>
</entry>
<entry>
<title>gallium/cso: unbind sampler views in cso_release_all()</title>
<updated>2010-07-01T19:07:07Z</updated>
<author>
<name>Brian Paul</name>
<email>brianp@vmware.com</email>
</author>
<published>2010-07-01T17:43:18Z</published>
<link rel='alternate' type='text/html' href='https://git.hiegel.fr/cgit/android-x86-mesa.git/commit/?id=1d298a3764cef6a7119524fdc8f3c0d2589d6070'/>
<id>urn:sha1:1d298a3764cef6a7119524fdc8f3c0d2589d6070</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge commit 'origin/master' into gallium-msaa</title>
<updated>2010-05-04T13:58:29Z</updated>
<author>
<name>Roland Scheidegger</name>
<email>sroland@vmware.com</email>
</author>
<published>2010-05-04T13:58:29Z</published>
<link rel='alternate' type='text/html' href='https://git.hiegel.fr/cgit/android-x86-mesa.git/commit/?id=0ae2f59c0287f4baec6c7de5f2f0fdf736fba26d'/>
<id>urn:sha1:0ae2f59c0287f4baec6c7de5f2f0fdf736fba26d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cso: use framebuffer utility functions</title>
<updated>2010-05-03T23:13:21Z</updated>
<author>
<name>Brian Paul</name>
<email>brianp@vmware.com</email>
</author>
<published>2010-05-03T23:13:21Z</published>
<link rel='alternate' type='text/html' href='https://git.hiegel.fr/cgit/android-x86-mesa.git/commit/?id=9b02f41cac36286d6838339532c7a95a0615b645'/>
<id>urn:sha1:9b02f41cac36286d6838339532c7a95a0615b645</id>
<content type='text'>
</content>
</entry>
</feed>
