History log of /external/mesa3d/src/gallium/state_trackers/xa/xa_composite.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c8cb5ed93c8e7343390f188bbf1a8459380a5739 17-Sep-2015 Thomas Hellstrom <thellstrom@vmware.com> st/xa: Fixups for PIPE_FORMAT_R8_UNORM A8 usage v2.

Check for PIPE_FORMAT_R8_UNORM when setting up the copy shader.
Also re-enable the dest alpha blending with A8 destination that
actually turned out to be correct.

Verified using rendercheck that the composite operators
overreverse, in, out, atop, atopreverse and xor seem to work fine
with a8 destiation.

v2: Fix a copy-paste error.

Reported-by: Jose Fonseca <jfonseca@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/state_trackers/xa/xa_composite.c
7e2865064916b85243788fc69040bb981f53c4f9 16-Sep-2015 Thomas Hellstrom <thellstrom@vmware.com> st/xa: Use PIPE_FORMAT_R8_UNORM when available

XA has been using L8_UNORM for a8 and yuv component surfaces.
This commit instead makes XA prefer R8_UNORM since it's assumed to have a
higher availability.

Also neither of these formats are suitable as destination formats using
destination alpha blending, so reject those operations.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/state_trackers/xa/xa_composite.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/state_trackers/xa/xa_composite.c
b7e7ae9f605283076dba6d9e826fbbd1f1db1c4b 04-May-2014 Rob Clark <robclark@freedesktop.org> xa: fix segfault

Fixes:

Program received signal SIGSEGV, Segmentation fault.
bind_samplers (comp=0x21b054, comp=0x21b054, ctx=0x211430)
at ../../../../../src/gallium/state_trackers/xa/xa_composite.c:445
445 mask_pic->srf->tex->format);
(gdb) bt
#0 bind_samplers (comp=0x21b054, comp=0x21b054, ctx=0x211430)
at ../../../../../src/gallium/state_trackers/xa/xa_composite.c:445
#1 xa_composite_prepare (ctx=0x211430, comp=comp@entry=0x21b054)
at ../../../../../src/gallium/state_trackers/xa/xa_composite.c:488
#2 0xb6f454b4 in XAPrepareComposite (op=<optimized out>, pSrcPicture=<optimized out>,
pMaskPicture=<optimized out>, pDstPicture=<optimized out>, pSrc=0x5b3ad8, pMask=0x0,
pDst=0x5923b8) at msm-exa-xa.c:533

We can't yet handle solid fill mask, so explicitly reject that, rather
than segfaulting. Otherwise DDX would need to check XA version to see
if solid fill mask were supported.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
/external/mesa3d/src/gallium/state_trackers/xa/xa_composite.c
a45ae814d1985bb9e72ba8f5cb73e070d22bd5b6 08-Apr-2014 Rob Clark <robclark@freedesktop.org> st/xa: scissor to help tilers

Keep track of the maximal bounds of all the operations and set scissor
accordingly. For tiling GPU's this can be a big win by reducing the
memory bandwidth spent moving pixels from system memory to tile buffer
and back.

You could imagine being more sophisticated and splitting up disjoint
operations. But this simplistic approach is good enough for the common
cases.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
/external/mesa3d/src/gallium/state_trackers/xa/xa_composite.c
3c520132737623d53e5c8dec6d3496ab8dffda1f 08-Apr-2014 Rob Clark <robclark@freedesktop.org> st/xa: remove unneeded args

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
/external/mesa3d/src/gallium/state_trackers/xa/xa_composite.c
d156c032c97d2c7a6ef2ec87212a4ef74dd9cb6e 06-Mar-2013 Jerome Glisse <jglisse@redhat.com> xa: let ddx handle flush

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
/external/mesa3d/src/gallium/state_trackers/xa/xa_composite.c
6e8c9589dbd714ac5fdff0c14f2b0abdf1fdcdf7 04-Mar-2013 Jerome Glisse <jglisse@redhat.com> xa: export a common context flush function

First step before moving flushing inside the ddx.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
/external/mesa3d/src/gallium/state_trackers/xa/xa_composite.c
598cc1f74d7ae924e84dee801b456ab7b0b22f84 21-Dec-2012 Marek Olšák <maraeo@gmail.com> gallium: extend pipe_context::flush for it to accept an END_OF_FRAME flag

Usage with pipe_context:
pipe->flush(pipe, NULL, PIPE_FLUSH_END_OF_FRAME);

Usage with st_context_iface:
st->flush(st, ST_FLUSH_END_OF_FRAME, NULL);

The flag is only a hint for drivers. Radeon will use it for buffer eviction
heuristics in the kernel (e.g. for queries like how many frames have passed
since a buffer was used).

The flag is currently only generated by st/dri on SwapBuffers.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
/external/mesa3d/src/gallium/state_trackers/xa/xa_composite.c
459dd568979a5745d84f8fd2bdff38242ee3c16f 03-Aug-2012 Brian Paul <brianp@vmware.com> st/xa: updates for CSO interface changes
/external/mesa3d/src/gallium/state_trackers/xa/xa_composite.c
3baaa1bbd72f67f6bc7374b2b6a16b0322006a65 14-Dec-2011 Thomas Hellstrom <thellstrom@vmware.com> st/xa: Disable composite solid fill with mask

Xa doesn't support it yet. Trying to do that would cause a segfault.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
/external/mesa3d/src/gallium/state_trackers/xa/xa_composite.c
11c9459ba0b0c0afa1ae0ea41b0edaf069fc421a 14-Dec-2011 Thomas Hellstrom <thellstrom@vmware.com> st/xa: Fix component alpha check

Component alpha only affects mask pictures.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
/external/mesa3d/src/gallium/state_trackers/xa/xa_composite.c
dbf00812b073bd3f17cbbaadb14c6f603b83cd10 24-Nov-2011 Thomas Hellstrom <thellstrom@vmware.com> st/xa: Kill a couple of compilation warnings

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
/external/mesa3d/src/gallium/state_trackers/xa/xa_composite.c
4d04367eca66a85e26f7c0f5d6392823d13880f6 24-Nov-2011 Thomas Hellstrom <thellstrom@vmware.com> st/xa, xa/vmwgfx: Use XA_EXPORT attribute to indicate global visibility

Also fix up Makefiles to use the default mesa compilation flags.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrants <jakob@vmware.com>
/external/mesa3d/src/gallium/state_trackers/xa/xa_composite.c
5ec01ba7e85c41fce53ee5c2c3b53036923a0924 08-Jul-2011 Thomas Hellstrom <thellstrom@vmware.com> st/xa: surfaces and sampler views are per context

Don't store references to these on the surface but on the context.
References to transfers are still stored on the surface since we allow
only a single map of a surface at a time.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
/external/mesa3d/src/gallium/state_trackers/xa/xa_composite.c
1b23d4c9a5b9567ba62aee753d2a6ad6d5d2d177 07-Jul-2011 Thomas Hellstrom <thellstrom@vmware.com> st/xa: Fix up error reporting. Disable component alpha.

Component alpha is temporarily disabled since it seems a bit buggy.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
/external/mesa3d/src/gallium/state_trackers/xa/xa_composite.c
568d99cc6c8eea75ce50fe29e1ea8a94fe7ff7a7 06-Jul-2011 Thomas Hellstrom <thellstrom@vmware.com> st/xa: Fix render to xa_format_a8, which is backed by a gallium L8 texture

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
/external/mesa3d/src/gallium/state_trackers/xa/xa_composite.c
ab3587f70d9af5eada0c52defe1de13d77f556a6 23-Jun-2011 Thomas Hellstrom <thellstrom@vmware.com> st/xa: Various fixes for composite.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
/external/mesa3d/src/gallium/state_trackers/xa/xa_composite.c
adf166b6c4f6781fd5e751622e9488e5f834bbc2 21-Jun-2011 Thomas Hellstrom <thellstrom@vmware.com> st/xa: Solid fill (tested) and composite (yet untested)

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
/external/mesa3d/src/gallium/state_trackers/xa/xa_composite.c