History log of /external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
95eb5e4eed6ef80e44dc4b15f0b8560857dba263 16-Dec-2016 Michel Dänzer <michel.daenzer@amd.com> cso: Make sanitize_hash safe for samplers

Remove currently bound sampler states from the hash table before pruning
entries from the hash table, so they cannot accidentally be deleted by
the pruning.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
745e2eaaec1f938184f3e9a2acfacf7e02ce0da8 16-Dec-2016 Michel Dänzer <michel.daenzer@amd.com> cso: Store hash key in struct cso_sampler

Preparation for following changes, no functional change intended.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
9e142386472e599e70856634e4cbd247114af74a 16-Dec-2016 Michel Dänzer <michel.daenzer@amd.com> cso: Optimize cso_save/restore_fragment_samplers

Only copy/memset the pointers that actually need to be.

v2:
* Cast info->nr_samplers to int for calculating delta (Nicolai)

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
5e70f80c9969c0adc095ba0a874ec87aad676729 16-Dec-2016 Michel Dänzer <michel.daenzer@amd.com> cso: Store pointers to struct cso_sampler in struct sampler_info

Preparation for following changes, no functional change intended.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
3d661a12be5be95da929b19cf4b5976b3c3fb8e9 16-Dec-2016 Michel Dänzer <michel.daenzer@amd.com> cso: Don't restore nr_samplers in cso_restore_fragment_samplers

If info->nr_samplers > ctx->nr_fragment_samplers_saved, the assignment
would prevent cso_single_sampler_done from unbinding the no longer used
samplers from the driver, which could result in use-after-free. This is
probably unlikely to happen in practice though.

Cc: "12.0 13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
4c53267b8f3e79988ea587db071afefc17e4ed8f 27-Aug-2016 Kai Wasserbäch <kai@dev.carbon-project.org> gallium: Use enum pipe_shader_type in set_shader_images()

Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
532db3b7881f3dfcd299320cbf44443d06b88373 27-Aug-2016 Kai Wasserbäch <kai@dev.carbon-project.org> gallium: Use enum pipe_shader_type in set_sampler_views()

Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
7413625ad357c87f409cd1673b40f8dffbc43259 27-Aug-2016 Kai Wasserbäch <kai@dev.carbon-project.org> gallium: Use enum pipe_shader_type in bind_sampler_states() (v2)

v1 → v2:
- Fixed indentation (noted by Brian Paul)
- Removed second assert from nouveau's switch statements (suggested by
Brian Paul)

Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
9411eb67ecebfc76c909ca81b09e6e7fe08ac8eb 12-Jul-2016 Eric Engestrom <eric@engestrom.ch> gallium/cso: avoid unnecessary null dereference

The label `out:` calls `destroy()` which dereferences `ctx`.
This is unnecessary as there is nothing to destroy.
Immediately return instead.

CovID: 1258255
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
d9893feb2c9d86345ea561f84d03e89229faa35d 27-Apr-2016 Nicolai Hähnle <nicolai.haehnle@amd.com> gallium/cso: allow saving the first fragment shader image slot

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
5888c47cc968a6b6d8ee6c85f43380b0d5970744 06-May-2016 Brian Paul <brianp@vmware.com> cso: remove / add some comments

Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
68116dcd5a05508af06cd41ca14faab1b910a934 02-May-2016 Brian Paul <brianp@vmware.com> cso: null-out previously bound sampler states

If, for example, we previously had 2 sampler states bound and now we
are binding one, we'd leave the second sampler state unchanged.
This change nulls-out the second sampler state in this situation.
We're already doing the same thing for sampler views.

This silences an occasional warning issued by the VMware driver when
the number of sampler views and sampler states disagreed.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
e599b8f384b4fc48b450ed848d93e27e876de53f 08-Apr-2016 Marek Olšák <marek.olsak@amd.com> gallium: pause queries for all meta ops

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
535002f4da61248096712a23cc4951d47fcd6c8d 01-Mar-2016 Thomas Hindoe Paaboel Andersen <phomes@gmail.com> gallium/cso: fix indentation

Only one of these were recently introduced. However, since
we keep copy/pasting the same wrong indentation we should
probably just fix it.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
dfc95ad6d129436a3d2383152583919fb2dde261 18-Feb-2016 Samuel Pitoiset <samuel.pitoiset@gmail.com> gallium/cso: only enable compute shaders when TGSI is supported

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94186
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
ffa1a1dd21a18534a044aa7e26f297c9f372ea4f 16-Feb-2016 Brian Paul <brianp@vmware.com> cso: make most of the cso_save/restore_x() functions static

Users of the CSO save/restore facility all use the new
cso_save/restore_state() functions instead.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
940357175517385e2f735b5243365d4b374371cd 16-Feb-2016 Brian Paul <brianp@vmware.com> cso: add new cso_save/restore_state() functions

cso_save_state() takes a bitmask of state items to save. Calling
cso_restore_state() restores those states.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
f7af12ae852bdc957fc6f197c722822b82043ead 16-Feb-2016 Brian Paul <brianp@vmware.com> cso: add new cso_set_viewport_dims() helper

To simplify some viewport setting code in the state tracker.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
61ed09c7ea41e559219c772f18ea00942d54d30a 04-Jan-2016 Samuel Pitoiset <samuel.pitoiset@gmail.com> gallium/cso: add support for compute shaders

Changes from v2:
- removed cso_{save,restore}_compute_shader() functions and the
compute_shader_saved variable because disabling compute shaders for
meta ops is not currently needed

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
150c289f6067cb1ba4572f9124948a94ef94c839 04-Dec-2015 Edward O'Callaghan <eocallaghan@alterapraxis.com> gallium/auxiliary: Sanitize NULL checks into canonical form

Use NULL tests of the form `if (ptr)' or `if (!ptr)'.
They do not depend on the definition of the symbol NULL.
Further, they provide the opportunity for the accidental
assignment, are clear and succinct.

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
2369dc83826c7b1f413ff78f55e460c38d7a0660 05-Jul-2015 Marek Olšák <marek.olsak@amd.com> cso: eliminate some sampler function wrappers
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
4ef7d93a941257b18506eae056631e8f4a11f893 05-Jul-2015 Marek Olšák <marek.olsak@amd.com> cso: remove clip state handling

There is no need for this.

v2: handle redundant clip state changes in st/mesa
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
b7492a1f45866a01b00263f9e252ddc3835304e9 05-Jul-2015 Marek Olšák <marek.olsak@amd.com> cso: only allow saving and restoring fragment sampler states
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
4e8bbed926729fe280701412d85aff64ab79856c 05-Jul-2015 Marek Olšák <marek.olsak@amd.com> cso: drop inefficient checking for redundant sampler state changes

Drivers can do this better, because they can skip redundant state changes
at per-slot granularity.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
3639d66a473591e21aa2ec7692c95c827b479632 05-Jul-2015 Marek Olšák <marek.olsak@amd.com> cso: only allow saving and restoring fragment sampler views

Not needed for other shader stages.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
a2a1a5805fd617e7f3cc8be44dd79b50da07ebb9 21-Jul-2015 Ilia Mirkin <imirkin@alum.mit.edu> gallium: replace INLINE with inline

Generated by running:
git grep -l INLINE src/gallium/ | xargs sed -i 's/\bINLINE\b/inline/g'
git grep -l INLINE src/mesa/state_tracker/ | xargs sed -i 's/\bINLINE\b/inline/g'
git checkout src/gallium/state_trackers/clover/Doxyfile

and manual edits to
src/gallium/include/pipe/p_compiler.h
src/gallium/README.portability

to remove mentions of the inline define.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Acked-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
e4201bb618f02a279fda59a1c528d7218e6900a5 18-May-2015 Marek Olšák <marek.olsak@amd.com> cso: add context cleanup code from st/mesa

This fixes a crash in nouveau which can't handle
set_constant_buffer(PIPE_SHADER_TESS_*).

Cc: 10.6 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
ed1b273ffcab0e2089899f3be7e31b2bc49f7ef3 23-Sep-2014 Marek Olšák <marek.olsak@amd.com> gallium/cso: set NULL shaders at context destruction

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
2a7da1bddbee2be09ae6c2276a04c658807720b0 02-Mar-2015 Marek Olšák <marek.olsak@amd.com> gallium/cso: add support for tessellation shaders

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
02e93be55e81d5ff257f4717eb3fdb5a8f79b544 21-Apr-2015 Brian Paul <brianp@vmware.com> cso: minor comment fix
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
0a60ebe30c186daf1fbe569e07bfe2e75f765824 07-Dec-2014 Marek Olšák <marek.olsak@amd.com> cso: put cso_release_all into cso_destroy_context

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
bbbe3b65adee44c164532d7afb4ff8fd8f88bbf4 22-Aug-2014 Eric Anholt <eric@anholt.net> u_vbuf: Simplify the format fallback translation.

Individual caps made supporting new fallbacks more complicated than it
needed to be. Instead, just make a table of fallbacks at context init
time.

v2: Fix inverted "do we need to install vbuf?" flagging caught by Marek.

Reviewed-by: Marek Olšák <marek.olsak@amd.com> (v2)
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
33f273778b8c864f52d1b1096a49f053490bf8ca 08-Jun-2014 Brian Paul <brianp@vmware.com> cso: fix stream-out clean up in cso_release_all()

Use the has_streamout flag as we do elsewhere to check if we need
to call pipe->set_stream_output_targets(). The driver might implement
the set_stream_output_targets() function, but not for all hardware
configurations.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
c5d822dad902b19f06c9be3c6863a51e1881ec5b 31-Mar-2014 Ilia Mirkin <imirkin@alum.mit.edu> mesa/st: add support for ARB_sample_shading

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
5a2f8b2c48a1497ed65bdf1fbdb39957de3f1a88 03-Apr-2014 Brian Paul <brianp@vmware.com> cso: check for no sampler view changes in cso_set_sampler_views()

As we do for sampler states in single_sampler_done() and many other
CSO functions.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
2355a6441435b8e66a032c44f0794066338e30a3 02-Apr-2014 Brian Paul <brianp@vmware.com> cso: fix sampler view count in cso_set_sampler_views()

We want to call pipe->set_sampler_views() with count being the
maximum of the old number of sampler views and the new number.
This makes sure we null-out any old sampler views.

We already do the same thing for sampler states in single_sampler_done().
Fixes some assertions seen in the VMware driver with XA tracker.

Cc: "10.0" "10.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Tested-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
dfa25ea5cd19d5a050a1c94bd7370a2259b9f007 07-Mar-2014 Zack Rusin <zackr@vmware.com> gallium: allow setting of the internal stream output offset

D3D10 allows setting of the internal offset of a buffer, which is
in general only incremented via actual stream output writes. By
allowing setting of the internal offset draw_auto is capable
of rendering from buffers which have not been actually streamed
out to. Our interface didn't allow. This change functionally
shouldn't make any difference to OpenGL where instead of an
append_bitmask you just get a real array where -1 means append
(like in D3D) and 0 means do not append.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
877128505431adaf817dc8069172ebe4a1cdf5d8 17-Jan-2014 José Fonseca <jfonseca@vmware.com> s/Tungsten Graphics/VMware/

Tungsten Graphics Inc. was acquired by VMware Inc. in 2008. Leaving the
old copyright name is creating unnecessary confusion, hence this change.

This was the sed script I used:

$ cat tg2vmw.sed
# Run as:
#
# git reset --hard HEAD && find include scons src -type f -not -name 'sed*' -print0 | xargs -0 sed -i -f tg2vmw.sed
#

# Rename copyrights
s/Tungsten Gra\(ph\|hp\)ics,\? [iI]nc\.\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./g
/Copyright/s/Tungsten Graphics\(,\? [iI]nc\.\)\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./
s/TUNGSTEN GRAPHICS/VMWARE/g

# Rename emails
s/alanh@tungstengraphics.com/alanh@vmware.com/
s/jens@tungstengraphics.com/jowen@vmware.com/g
s/jrfonseca-at-tungstengraphics-dot-com/jfonseca-at-vmware-dot-com/
s/jrfonseca\?@tungstengraphics.com/jfonseca@vmware.com/g
s/keithw\?@tungstengraphics.com/keithw@vmware.com/g
s/michel@tungstengraphics.com/daenzer@vmware.com/g
s/thomas-at-tungstengraphics-dot-com/thellstom-at-vmware-dot-com/
s/zack@tungstengraphics.com/zackr@vmware.com/

# Remove dead links
s@Tungsten Graphics (http://www.tungstengraphics.com)@Tungsten Graphics@g

# C string src/gallium/state_trackers/vega/api_misc.c
s/"Tungsten Graphics, Inc"/"VMware, Inc"/

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
95bf222603bbbb643a6119e370c6a616ccc5ceaf 07-Jan-2014 José Fonseca <jfonseca@vmware.com> cso_context: Fix cso_context::sample_mask initial value.

The initial value of cso_context::sample_mask_saved is irrelevant as it
will be overwritten with cso_context::sample_mask in
cso_save_sample_mask. Therefore it is cso_context::sample_mask that
needs to be properly initialized.

This fixes regressions in blits and mipmap generation after adding
support for sample_mask to llvmpipe.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
e47af58bb411c7779857ad96a7cc3306980311ae 21-Nov-2013 Marek Olšák <marek.olsak@amd.com> st/mesa: implement layered framebuffer clear for the clear_with_quad fallback

Same approach as in u_blitter.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
ca39f4eee272bd111eccae79f770493d55cf91bb 26-Nov-2013 Roland Scheidegger <sroland@vmware.com> gallium/cso: fix sampler / sampler_view counts

Now that it is possible to query drivers for the max sampler view it should
be safe to increase this without crashing.
Not entirely convinced this really works correctly though if state trackers
using non-linked sampler / sampler_views use this.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
a3ed98f7aa85636579a5696bf036ec13e5c9104a 08-Oct-2013 Brian Paul <brianp@vmware.com> gallium: new, unified pipe_context::set_sampler_views() function

The new function replaces four old functions: set_fragment/vertex/
geometry/compute_sampler_views().

Note: at this time, it's expected that the 'start' parameter will
always be zero.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
e96c55ff495528fc70fb5363d60bf4c645bc2082 16-Oct-2013 Brian Paul <brianp@vmware.com> cso: fix incorrect sampler view count in cso_restore_sampler_views()

During the recent bind_sampler_states() interface change in gallium
we changed the CSO single_sampler_done() function so that if we were
decreasing the number of sampler states bound in the driver, we'd
null-out the "extra/old" sampler states to unbind them. See commit
1e2fbf265.

However, we didn't make the corresponding fix for sampler views.
This caused an assertion to fail in the svga driver which checked
that the number of sampler views matched the number of sampler states.

This patch fixes cso_restore_sampler_views() so that it nulls-out
the extra/old sampler views if the number of new views is less than
the number of current/old views.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
1e2fbf26572dd6e3112cb5e4c5a1014da99c85d3 13-Sep-2013 Brian Paul <brianp@vmware.com> cso: make sure all sampler states are set/cleared
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
1446600d1a878450b08310d2728b01ad04e9e8cd 12-Sep-2013 Brian Paul <brianp@vmware.com> cso: remove use of old bind_*_sampler_states() functions
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
5cba8725a4810c450cb386042a5701c21f2559c8 12-Sep-2013 Brian Paul <brianp@vmware.com> cso: use pipe_context::bind_sampler_states() if non-null
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
793e8e3d7ed816cc9a066245dde798afdcf8b581 14-Jun-2013 Roland Scheidegger <sroland@vmware.com> gallium: add condition parameter to render_condition

For conditional rendering this makes it possible to skip rendering
if either the predicate is true or false, as supported by d3d10
(in fact previously it was sort of implied skip rendering if predicate
is false for occlusion predicate, and true for so_overflow predicate).
There's no cap bit for this as presumably all drivers could do it trivially
(but this patch does not implement it for the drivers using true
hw predicates, nvxx, r600, radeonsi, no change is expected for OpenGL
functionality).

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
eaabb4ead07ae043ecc789024028e225ebd0f318 24-May-2013 Zack Rusin <zackr@vmware.com> gallium: Add support for multiple viewports

Gallium supported only a single viewport/scissor combination. This
commit changes the interface to allow us to add support for multiple
viewports/scissors.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Reviewed-by: José Fonseca<jfonseca@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
d1b91e309be2467829aa71ebdcb5a8f78e30e781 18-Mar-2013 Marek Olšák <maraeo@gmail.com> cso: add constant buffer save/restore feature for postprocessing

Postprocessing is an internal meta op and should restore the states
it changes.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
3a555637b2fa2c3e8095e4aa48098c1ae28655d9 07-Dec-2012 Marek Olšák <maraeo@gmail.com> gallium/cso: don't use the pipe_error return type where it's not needed

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
eae9674f187ea0f250723fef75d4f71bb3ba632e 07-Dec-2012 Marek Olšák <maraeo@gmail.com> gallium: manage render condition in cso_context and fix postprocessing w/ it

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
e73bf3b805de78299f1a652668ba4e6eab9bac94 29-Mar-2012 Marek Olšák <maraeo@gmail.com> gallium: add start_slot parameter to set_vertex_buffers

This allows updating only a subrange of buffer bindings.

set_vertex_buffers(pipe, start_slot, count, NULL) unbinds buffers in that
range. Binding NULL resources unbinds buffers too (both buffer and user_buffer
must be NULL).

The meta ops are adapted to only save, change, and restore the single slot
they use. The cso_context can save and restore only one vertex buffer slot.
The clients can query which one it is using cso_get_aux_vertex_buffer_slot.
It's currently set to 0. (the Draw module breaks if it's set to non-zero)

It should decrease the CPU overhead when using a lot of meta ops, but
the drivers must be able to treat each vertex buffer slot as a separate
state (only r600g does so at the moment).

I can imagine this also being useful for optimizing some OpenGL use cases.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
cab2fed135bc1edf7b65ddca3236020638427061 10-Aug-2012 Brian Paul <brianp@vmware.com> gallium: remove PIPE_MAX_VERTEX/GEOMETRY_SAMPLERS #define

PIPE_MAX_SAMPLERS, PIPE_MAX_VERTEX_SAMPLERS and PIPE_MAX_GEOMETRY_SAMPLERS
were all defined to the same value (16).

In various places we're creating arrays such as
sampler_views[PIPE_SHADER_TYPES][PIPE_MAX_SAMPLERS] so we were assuming
the same number of max samplers for all shader stages anyway.

Of course, drivers are still free to advertise different numbers of max
samplers for different shaders.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
3487b93cc4b8bea44f966a4f5cfd29b26dbbcff2 10-Aug-2012 Brian Paul <brianp@vmware.com> cso: rearrange some structure fields for consistency
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
e7689303a8e4790c38cc69ae7a197712f98e8f5b 24-Jul-2012 Marek Olšák <maraeo@gmail.com> gallium: set sample mask to ~0 for clear, blit and gen_mipmap

The sample mask affects single-sampled rendering too (it's orthogonal
to the color mask).

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
832706a80beb1643ec777a0a795a4ddcf6dfaca4 03-Aug-2012 Brian Paul <brianp@vmware.com> cso: remove unreachable break statements
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
076e5eacf1e5653acd1e99f0e7fdfe7499da5665 03-Aug-2012 Brian Paul <brianp@vmware.com> cso: 80-column wrapping, remove trailing whitespace, etc
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
ea6f035ae90895bd4ee3247408eb179dfdf96d22 02-Aug-2012 Brian Paul <brianp@vmware.com> gallium: consolidate CSO sampler and sampler_view functions

Merge the vertex/fragment versions of the cso_set/save/restore_samplers()
functions. Now we pass the shader stage (PIPE_SHADER_x) to the function
to indicate vertex/fragment/geometry samplers. For example:

cso_single_sampler(cso, PIPE_SHADER_FRAGMENT, unit, sampler);

This results in quite a bit of code reduction, fewer CSO functions and
support for geometry shaders.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
46fe17930ec71be3489fbb844de2bf16d877437e 29-Apr-2012 Marek Olšák <maraeo@gmail.com> cso: cso_context should install u_vbuf by itself and not st/mesa

so that it's installed in the other state trackers too
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
e0773da1e897164ed7597437070e32b867734ee5 10-Apr-2012 Marek Olšák <maraeo@gmail.com> gallium: make user vertex buffers optional

This couldn't be split because it would break bisecting.

Summary:
* r300g,r600g: stop using u_vbuf
* r300g,r600g: also report that the FIXED vertex type is unsupported
* u_vbuf: refactor for use in the state tracker
* cso: wire up u_vbuf with cso_context
* st/mesa: conditionally install u_vbuf
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
76eefcc70cc62db7d226591de3f918ff102f6de3 11-Apr-2012 Marek Olšák <maraeo@gmail.com> cso: add set_index_buffer and draw_vbo passthrough functions

v2: use util_draw_init_info

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
6f03692775ed49035802d660516b7d7464c7a1ad 10-Apr-2012 Marek Olšák <maraeo@gmail.com> cso: unreference saved vertex buffers when restoring

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
32f833e5a58d886065309da5414a63924e61e9d9 17-Feb-2012 Marek Olšák <maraeo@gmail.com> gallium/cso: kill off non-functional shader caching

Suggested by José.

We don't provide shader caching in CSO. Most of the time the api provides
object semantics for shaders anyway, and the cases where it doesn't
(eg mesa's internall-generated texenv programs), it will be up to
the state tracker to implement their own specialized caching.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
dc4c821f0817a3db716f965692fb701079f66340 10-Jan-2012 Marek Olšák <maraeo@gmail.com> Squash-merge branch 'gallium-clip-state'

Conflicts:
src/gallium/auxiliary/tgsi/tgsi_strings.c
src/mesa/state_tracker/st_atom_clip.c

commit d919791f2742e913173d6b335128e7d4c63c0840
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Fri Jan 6 17:59:22 2012 +0100

d3d1x: adapt to new clip state

commit cfec82bca3fefcdefafca3f4555285ec1d1ae421
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Fri Jan 6 14:16:51 2012 +0100

gallium/docs: update for clip state changes

commit c02bfeb81ad9f62041a2285ea6373bbbd602912a
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Fri Jan 6 14:21:43 2012 +0100

tgsi: add TGSI_PROPERTY_PROHIBIT_UCPS

commit d4e0a785a6a23ad2f6819fd72e236acb9750028d
Author: Brian Paul <brianp@vmware.com>
Date: Thu Jan 5 08:30:00 2012 -0700

tgsi: consolidate TGSI string arrays in new tgsi_strings.h

There was some duplication between the tgsi_dump.c and tgsi_text.c
files. Also use some static assertions to help catch errors when
adding new TGSI values.

v2: put strings in tgsi_strings.c file instead of the .h file.

Reviewed-by: Dave Airlie <airlied@redhat.com>

commit c28584ce0d8c62bd92c8f140729d344f88a0b3cd
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Fri Jan 6 12:48:09 2012 +0100

gallium: extend user_clip_plane_enable to apply to clip distances

commit f1d5016c07f786229ed057effbe55fbfd160b019
Author: Marek Olšák <maraeo@gmail.com>
Date: Fri Jan 6 02:39:09 2012 +0100

nvfx: adapt to new clip state

commit 6f6fa1c26bd19f797c1996731708e3569c9bfe24
Author: Marek Olšák <maraeo@gmail.com>
Date: Fri Jan 6 01:41:39 2012 +0100

st/mesa: fix DrawPixels with GL_DEPTH_CLAMP

commit c86ad730aa1c017788ae88a55f54071bf222be12
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Tue Jan 3 23:51:30 2012 +0100

nv50: adapt to new clip state

commit 3a8ae6ac243bae5970729dc4057fe02d992543dc
Author: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Date: Tue Jan 3 23:32:36 2012 +0100

nvc0: adapt to new clip state

commit 6243a8246997f8d2fcc69ab741a2c2dea080ff11
Author: Marek Olšák <maraeo@gmail.com>
Date: Thu Dec 29 01:32:51 2011 +0100

draw: initalize pt.user.planes in draw_init

This fixes a crash in glean/fpexceptions.

commit e3056524b19b56d473f4faff84ffa0eb41497408
Author: Marek Olšák <maraeo@gmail.com>
Date: Mon Dec 26 06:26:55 2011 +0100

svga: adapt to new clip state

commit c5bfa8b37d6d489271df457229081d6bbb51b4b7
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 14:11:51 2011 +0100

r600g: adapt to new clip state

commit f11890905362f62627c4a28a8255b76eb7de7df2
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 14:10:26 2011 +0100

r300g: adapt to new clip state

commit e37465327c79a01112f15f6278d9accc5bf3103f
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 12:39:16 2011 +0100

draw: adapt to new clip state

This adds a regression in the LLVM clipping path. Can anybody see anything
wrong with the code? It works for every other case, just glean/fpexceptions
crashes when doing the "Infinite clip plane test".

commit b474d2b18c72d965eefae4e427c269cba5ce6ba2
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 13:14:59 2011 +0100

u_blitter: don't save/set/restore clip state

commit 9dd240ea91f523a677af45e8d0adb9e661e28602
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 13:11:56 2011 +0100

gallium: don't cso_save/set/restore clip state

The enable bits are in the rasterizer state.

commit a4f7031179f5f4ad524b34b394214b984ac950f6
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 12:58:55 2011 +0100

gallium: default depth_clip to 1

depth_clip = !depth_clamp

commit fe21147a00ab90e549d63fe12ee4625c9c2ffcc3
Author: Marek Olšák <maraeo@gmail.com>
Date: Mon Dec 26 06:14:19 2011 +0100

trace,util: update state logging to new clip state

Also dump the other missing flags.

commit 2a3b96e84ac872dcc5bc1de049fe76bb58d64b23
Author: Marek Olšák <maraeo@gmail.com>
Date: Sun Dec 25 10:43:43 2011 +0100

st/mesa: adapt to new clip state

commit b7b656a42fca19d7c85267f42649a206a85a2c72
Author: Marek Olšák <maraeo@gmail.com>
Date: Sat Dec 17 15:45:19 2011 +0100

gallium: move state enable bits from clip_state to rasterizer_state
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
cf5948380829ff44aafb12c911b0fc064360d352 15-Dec-2011 Fredrik Höglund <fredrik@kde.org> gallium: fix a crash in drivers that don't support stream output
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
c05fafa4a0fd93d4264c46578e23a83ecf2b481e 09-Dec-2011 Marek Olšák <maraeo@gmail.com> st/mesa: implement EXT_transform_feedback and ARB_transform_feedback2
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
d2633af696f2e4ff98f669061e4e222e8643312c 04-Nov-2011 Marek Olšák <maraeo@gmail.com> st/mesa: set geometry shader to NULL when doing internal drawing

The code expects the geometry shader to be NULL.
We don't have geometry shaders now, but it's good to be prepared.

v2: check for support in the cso context
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
c5e48025ed8dd44de63144ee3621c6aa4b5add81 04-Nov-2011 Marek Olšák <maraeo@gmail.com> gallium/cso_cache: remove one call to pipe_sampler_view_reference
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
d5062fb3a315c46d77d5c954a3e3c14be1907d33 09-Jan-2011 Marek Olšák <maraeo@gmail.com> gallium: always save and restore vertex buffers using cso_cache
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
c5fb2c60bfe114d993da6c416a39c7873ab9cb3d 03-Feb-2011 Brian Paul <brianp@vmware.com> cso: don't tell drivers to bind null samplers, sampler views

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->set_fragment_sampler_views(pipe, 4, views={foo, bar, NULL, NULL})

Many/most gallium drivers would take this as-is and set
ctx->num_sampler_views=4 and ctx->sampler_views={foo, bar, NULL, NULL, ...}.
Later, loops over ctx->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->num_samplers = 2
ctx->samplers = {foo, bar, ...}
ctx->num_sampler_views = 4
ctx->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.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
c06fa98c86abbff730a098ffbe980347b3c7d0e6 03-Feb-2011 Brian Paul <brianp@vmware.com> cso: refactor texture sampler and sampler view code

This consolidates the code duplicated between the fragment sampler
and vertex sampler functions. Plus, it'll make adding support for
geometry shader samplers trivial.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
5f30e0b2316c5d0a50f1b331e7cdb4c46882e918 03-Feb-2011 Brian Paul <brianp@vmware.com> cso: rename fragment sampler-related fields

To better distinguish from vertex sampler fields.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
d087cfaabf386c462329fb62f54311523a89f106 03-Feb-2011 Brian Paul <brianp@vmware.com> cso: fix loop bound in cso_set_vertex_samplers()

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.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
4460e9f0a1931c74ea364f19d7b1c458b6bc62d4 21-Jul-2010 Marek Olšák <maraeo@gmail.com> cso: handle depth clamp
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
e845765f0f8791a0e6c2e54b91ebf9f0e831d19f 02-Jul-2010 Brian Paul <brianp@vmware.com> gallium/cso: check for set_vertex_sampler_views != NULL before calling it

Not all drivers implement this method.
Fixes regression reported by Chris Rankin and bug 28889.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
1d298a3764cef6a7119524fdc8f3c0d2589d6070 01-Jul-2010 Brian Paul <brianp@vmware.com> gallium/cso: unbind sampler views in cso_release_all()
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
0ae2f59c0287f4baec6c7de5f2f0fdf736fba26d 04-May-2010 Roland Scheidegger <sroland@vmware.com> Merge commit 'origin/master' into gallium-msaa
9b02f41cac36286d6838339532c7a95a0615b645 04-May-2010 Brian Paul <brianp@vmware.com> cso: use framebuffer utility functions
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
7662e3519bef3802024da3050b886068281e02b1 30-Apr-2010 Roland Scheidegger <sroland@vmware.com> Merge commit 'origin/master' into gallium-msaa
4ccee747257192ef584d26d8854f8bc17cc57284 29-Apr-2010 Brian Paul <brianp@vmware.com> cso: remove commented-out code, update function docs
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
9a966b93c03aecac8eb72e6133aa9a2f2c7673f3 27-Apr-2010 Roland Scheidegger <sroland@vmware.com> gallium: fix glaring bugs in last commit
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
aac2cccccfd701ae8d7ce0813c28c64498d4a076 26-Apr-2010 Roland Scheidegger <sroland@vmware.com> gallium: interface changes for multisampling

add function to set sample mask, and state for alpha-to-coverage and
alpha-to-one. Also make it possible to query for supported sample count
with is_msaa_supported().

Use explicit resource_resolve() to resolve a resource. Note that it is illegal
to bind a unresolved resource as a sampler view, must be resolved first (as per
d3d10 and OGL APIs, binding unresolved resource would mean that special texture
fetch functions need to be used which give explicit control over what samples
to fetch, which isn't supported yet).

Also change surface_fill() and surface_copy() to operate directly on resources.
Blits should operate directly on resources, most often state trackers just used
get_tex_surface() then did a blit. Note this also means the blit bind flags are
gone, if a driver implements this functionality it is expected to handle it for
all resources having depth_stencil/render_target/sampler_view bind flags (might
even require it for all bind flags?).

Might want to introduce quality levels for MSAA later.
Might need to revisit this for hw which does instant resolve.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
53499c64b212c68527f84f5e672cdfc95935f643 24-Apr-2010 José Fonseca <jfonseca@vmware.com> cso_cache: Ensure irrelevant state of the blend state is zeroed.

Otherwise drivers that bake the full blend state in a key end up having
uninitialized memory in their key.

Courtesy of valgrind.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
45d1dc26072ea83ee10cf1c8907cfdf5df51928e 22-Mar-2010 Vinson Lee <vlee@vmware.com> cso: Remove unnecessary header.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
3b9555094d128052bdaf9957fe9062b35f7f5392 19-Mar-2010 Roland Scheidegger <sroland@vmware.com> cso: remove cso_set/save/restore_sampler_textures

no longer used after all statetrackers have been converted.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
6420aca08ba6910dce22ab9f813cc57d611b0aa8 15-Mar-2010 Keith Whitwell <keithw@vmware.com> cso: Do not hold references to bound textures.

Sampler views already hold references to those.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
faa14818856e1e9a4ee624c2bc04d7aecabd07ab 12-Mar-2010 Michal Krol <michal@vmware.com> cso: Remove set/save/restore_vertex_sampler_textures().
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
08f89988c8738029c60e89c61c9da0522bd53087 12-Mar-2010 Michal Krol <michal@vmware.com> cso: Add entry points for vertex/fragment sampler views.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
3ce4375912c8ea488460e593e07c5bb15b92dca9 10-Mar-2010 Michal Krol <michal@vmware.com> Merge branch 'master' into gallium-sampler-view

Conflicts:
src/gallium/auxiliary/Makefile
src/gallium/auxiliary/SConscript
src/gallium/auxiliary/tgsi/tgsi_exec.c
src/gallium/auxiliary/util/u_blitter.c
src/gallium/drivers/i915/i915_context.h
src/gallium/drivers/i965/brw_context.h
src/gallium/drivers/llvmpipe/lp_context.h
src/gallium/drivers/nv50/nv50_context.h
src/gallium/drivers/nv50/nv50_state_validate.c
src/gallium/drivers/nv50/nv50_tex.c
src/gallium/drivers/r300/r300_blit.c
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/softpipe/sp_context.h
src/gallium/drivers/svga/svga_context.h
src/gallium/drivers/svga/svga_pipe_sampler.c
0d6b0b0d9d5257cc8fb95786b6cd77d088bdb35e 09-Mar-2010 Roland Scheidegger <sroland@vmware.com> cso: don't forget to release vertex elements state
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
a73fd447d4bb3d509fedf52b18a50fccab618298 09-Mar-2010 Corbin Simpson <MostAwesomeDude@gmail.com> cso: Fix typo in assert.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
685340a53e1dcb2a888e634ee71ba24356befe69 09-Mar-2010 Roland Scheidegger <sroland@vmware.com> Merge branch 'gallium-vertexelementcso'

Conflicts:
src/gallium/auxiliary/cso_cache/cso_context.c
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_gen_mipmap.c
src/gallium/drivers/i915/i915_context.h
src/gallium/drivers/i965/brw_draw_upload.c
src/gallium/drivers/r300/r300_blit.c
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_state_derived.c
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_clear.c
fe9f8536f1b1e7a3a2ac10afd8078e8f4d327578 09-Mar-2010 Roland Scheidegger <sroland@vmware.com> auxiliary: fix vertex elements cso

potentially could have got a match even though the cso was different
(in case of different count and first few elements the same).
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
227ae7b968c1351921babdbf6f052239766ffce4 24-Feb-2010 Michal Krol <michal@vmware.com> cso: Track clip state with cso context.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
51d139f03898e5e46af6363c6bba131455738cc4 18-Feb-2010 Roland Scheidegger <sroland@vmware.com> gallium: use cso state handling for pipe_vertex_element state
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
263406addb90ca7599ddfb210944ab0dd63b973c 11-Feb-2010 Roland Scheidegger <sroland@vmware.com> gallium: give pipe_stencil_ref its own cso_save/restore functions

seems cleaner, and other dynamic state like viewport is handled that way too
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
b75adabc89e34083ac302ac9bafc8d80b62ac14c 11-Feb-2010 Roland Scheidegger <sroland@vmware.com> gallium: also save/restore stencil_ref in cso_save/restore_depth_stencil_alpha

makes life of state trackers easier
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
1a859ecf4a4728cb321b1f68d51491cd285a3c03 09-Feb-2010 Roland Scheidegger <sroland@vmware.com> gallium: don't put stencil ref value in pipe_depth_stencil_alpha_state

This will make driver's life a bit harder, however it makes sense that stencil
reference value is not part of the pipe_depth_stencil_alpha_state, because
it often (there are some algorithms which require this) changes more frequently
than the rest of the dsa state. This is also encouraged by some graphic APIs.
Treat it similar to pipe_blend_color.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
28486880ca3ec39419ccee0cb1a3bedc9ef7117c 02-Feb-2010 José Fonseca <jfonseca@vmware.com> gallium: pipe/p_inlines.h -> util/u_inlines.h
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
847ac8ec5ff683076dff17d8e0426a64b4ad65e7 30-Jan-2010 Roland Scheidegger <sroland@vmware.com> gallium: fix blend state cso

if independent blend state was disabled, only the data from first rt was
stored, however the comparison used the full state, hence there never was
a match and always a new object was created.
Fixes a huge performance drop with llvmpipe due to recompilation.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
cbb8d35a3ae999f0192dfdca35f7cbc1d494fabb 25-Jan-2010 Roland Scheidegger <sroland@vmware.com> gallium: fix cast for size calc of pipe_blend_state
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
bef610f693266c338b99511b4d1eea5d5b97644e 20-Jan-2010 Roland Scheidegger <sroland@vmware.com> gallium: prepare for per-rendertarget blend enables, writemasks, blend funcs

GL 3.0 (EXT_draw_buffers2) and other APIs allow independent blend enables and
write masks per render target, ARB_draw_buffers_blend (and other APIs) also
allow independent blend functions. Things like dithering, logic ops however
are not extended to be per rendertarget, that might be conceptually possible
however it doesn't look like any API wants to expose this.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
90cdf0d67c1086a8fd274689aa2e1b8da3a9ebdc 18-Jan-2010 Jakob Bornecrantz <jakob@vmware.com> cso: Add set_vertex_samplers function
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
89d8577fb3036547ef0b47498cc8dc5c77f886e0 14-Dec-2009 Zack Rusin <zackr@vmware.com> gallium: add geometry shader support to gallium
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
f6106566081978f663cf08e54bb8908cb58a5316 19-Feb-2010 Michal Krol <michal@vmware.com> gallium: WIP: Introduce sampler views.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
debc0b6fa8ce110eb4febc376d8327336259742c 02-Dec-2009 Brian Paul <brianp@vmware.com> cso: check if pipe_context::bind_vertex_sampler_states is non-null

Fixes segfaults upon exit when the CSO module is releasing its objects.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
fd4aa4f32365a5f054e7fc36b558680dcac66d1b 01-Dec-2009 Michal Krol <michal@vmware.com> cso: Add support for separate vertex sampler state.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
389021220d27c376b81a6221a31d0ee33c24e67f 02-Oct-2009 Brian Paul <brianp@vmware.com> gallium: replace // comments with /* */
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
124a6b1958c630ea049025e2b72547096fdc8f2c 24-Jun-2009 Zack Rusin <zack@kde.org> gallium: rearrange some members to avoid memory holes/padding

plus it saves us a cacheline in the cso
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
45bde75bd67e7e920f0113842d1fa58613ccc3ec 04-Mar-2009 Michel Dänzer <daenzer@vmware.com> gallium: Remove some superfluous instances of #include "p_inlines.h".
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
2299f21f8da816fc4588492965e7dac422da1a96 26-Jan-2009 Zack Rusin <zackr@vmware.com> gallium: standardize api on the prefix "nr"
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
f68d2a0febca38bc7b31f9ab9718e944935b48bc 18-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: fix surface object memory leak in cso module
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
f10e7f0d288530a31a7ed3bc976a537fe640ce69 17-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: fix lack of surface reference counting in cso_set/save/restore_framebuffer()

Fixes asst problems with FBO / render to texture.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
4f25420bdd834e81a3e22733304efc5261c2998a 25-Aug-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.h

Also, rename p_tile.[ch] to u_tile.[ch]
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
c208a2c791fa24c7c5887fc496738cbddbfafc72 27-Jul-2008 José Fonseca <jrfonseca@tungstengraphics.com> Merge tgsi/exec and tgsi/util directories.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
359058e7b77ddbac5eec7e8d1c77232bcbb1adbf 25-May-2008 Keith Whitwell <keith@tungstengraphics.com> cso: use memcpy rather than structure asignment for copying

Apparently gcc will omit to copy hidden padding bytes under some circumstances,
which means later on memcmp() will indicate a difference between structs
even though all the visible members are identical.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
d2ec02f44026244130b4e6f9d87eac6a03a9c6c1 08-May-2008 Michel Dänzer <michel@tungstengraphics.com> Merge branch 'gallium-0.1' into gallium-tex-surfaces
1dfb3d4729ce4cd71a593c14dbb2907cd987f8ab 08-May-2008 Michel Dänzer <michel@tungstengraphics.com> cso_cache: Fix test for currently bound blend state.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
251db95945c6b484a093336e7bf12aed6091de54 01-May-2008 Keith Whitwell <keith@tungstengraphics.com> cso: can memcmp-compare pipe_framebuffer_state now it includes fb dimensions
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
026e31a068981724fb0c98f6d1fc87d086fd2da6 30-Apr-2008 Zack Rusin <zack@tungstengraphics.com> try to fix the deleting of the bound cso during cleanup of the hash
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
386102c62a3315182ffbc6319351cb883234511a 24-Apr-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: make cso_release_all() public
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
a41804909d5799cddfbf48a46524f78c736408d4 24-Apr-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: minor clean-ups, comments
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
ac79532a15a7109bf0fbd0e40a1ba8e65ed8c435 24-Apr-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: tweak the new shader delete funcs
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
f2c31257167f85df276322be1b8523064e8b66a9 24-Apr-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: added cso_delete_vertex_fragment_shader() functions

The state tracker now uses these functions to free shaders, rather than
the pipe->delete_vs/fs-state() functions. Before, we could get in a situation
where we free() a shader and happen to alloc() a new one at the same address.
The cso_set_vertex/fragment_shader() function would no-op the state change
since the pointers were the same. This led to problems elsewhere, of course.

The new delete functions null-out the CSO's current shader pointers.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
4f93a3a680560940630c44be0066b72a86ff008a 23-Apr-2008 José Fonseca <jrfonseca@tungstengraphics.com> gallium: Fix texture refcount leak.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
8f4f89c04383b2100f6d856270cad62dfe8a6354 22-Apr-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: remove assertions

It's possible the current vs/fs is null when cso_save_vertex/fragment_shader()
is called.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
88f8eed3c4430505b1436b6c5b0114d34c33f822 22-Apr-2008 Keith Whitwell <keith@tungstengraphics.com> cso: fix vs/fs confusion
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
ed187d39a6e0fd921b2a45a143d88ac4b66eee91 21-Apr-2008 Zack Rusin <zack@tungstengraphics.com> make the api consistent (all set functions return pipe_error status)
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
0879237725eca893318137b795d4234300a37e9a 21-Apr-2008 Zack Rusin <zack@tungstengraphics.com> handle some of the possible allocation failures within the hash itself
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
9fe63929011cd9c4d86ab6525555a3e53423c854 21-Apr-2008 Zack Rusin <zack@tungstengraphics.com> initial stab at error handling in cso
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
9a0e6860d3b4602515f39593ed9af00cee7bb106 21-Apr-2008 Keith Whitwell <keith@tungstengraphics.com> cso: disable not-really-working cso_set_*_shader() funcs
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
1dc5e56f3e48b629daa18c2d8631c96bda638eb6 21-Apr-2008 Keith Whitwell <keith@tungstengraphics.com> cso: provide functions to bind fs/vs handles directly
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
d3045ebb0642b09b4d353be6d4a258e6766061e6 21-Apr-2008 José Fonseca <jrfonseca@tungstengraphics.com> gallium: Hash the fragment shader tokens, instead of pipe_shader_state.

PS: pipe_shader_state should probably go away now that it is reduced to a single pointer.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
08717d94619802f7816420be155c0c92fa727109 21-Apr-2008 José Fonseca <jrfonseca@tungstengraphics.com> gallium: Do not mistake pipe state objects for state tracker state objects.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
29858e1b553cee1fd7e3380ea62c69d2a6b91b95 20-Apr-2008 José Fonseca <jrfonseca@tungstengraphics.com> gallium: Refcount textures.

Pipe driver does refcount textures. If cso_context does not, dangling
pointers appear.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
8dd90ee19d97c4b032c2b057d96b3e674be3e1fd 20-Mar-2008 Brian <brian.paul@tungstengraphics.com> gallium: temporarily disable the memcmp() in cso_set_framebuffer()

The memcmp() fails to detect buffer size changes...
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
b45669283fe4b9af9f2e78ac3c0c84207cf63775 19-Mar-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: fix bug in cso_single_sampler_done() in computation of nr_samplers

Need to find highest used sampler so search from end toward beginning.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
7d95efde0a0e13e13c59444703bc47eb13926385 19-Mar-2008 Brian <brian.paul@tungstengraphics.com> gallium: implement CSO save/restore functions for use by meta operations (blit, gen-mipmaps, quad-clear, etc)

Also, additional cso_set_*() functions for viewport, framebuffer, blend color,
etc. state.
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
e5b19a0f833b5a3d5ffcf50d25a620d00bd8914b 19-Mar-2008 Brian <brian.paul@tungstengraphics.com> gallium: added cso_unset_*() functions

If we go behind the CSO context's back and set pipe state directly we
need to invalidate the CSO's 'current' pointers.
This will be revisited...
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
cb294542bcaca7d9847067ce502a68fd8e92f42e 12-Mar-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: remove a debug printf
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
30fab81de8ea7bf81181db7bd605f376d4e4fca2 11-Mar-2008 Brian <brian.paul@tungstengraphics.com> gallium: fix fs/vs typo in cso_set_vertex_shader()
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
b041dbe9019ff8cb16ff15d0baaa803c7dc654db 09-Mar-2008 Keith Whitwell <keith@tungstengraphics.com> gallium: avoid deleting currently-bound CSO's on cache destruction
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
d8d6569e288fe3324473fb19ade798502dfbba8e 09-Mar-2008 Keith Whitwell <keith@tungstengraphics.com> cso: fix line endings
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
ac87bc18359825890a53d4dbfda5c6eecd916afd 09-Mar-2008 Keith Whitwell <keith@tungstengraphics.com> cso: Use MALLOC
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c
5d802d8c8460cecf306b130eb29ef05069173e30 09-Mar-2008 Keith Whitwell <keith@tungstengraphics.com> cso: add a higher-level interface which does all pipe interactions to set a given state
/external/mesa3d/src/gallium/auxiliary/cso_cache/cso_context.c