History log of /external/mesa3d/src/gallium/auxiliary/draw/draw_pipe_flatshade.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/draw/draw_pipe_flatshade.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/draw/draw_pipe_flatshade.c
2b23149206c933aed473d289d79dd2f398f88389 10-Dec-2014 Roland Scheidegger <sroland@vmware.com> draw: fix flatshade stage for constant interpolated values

This stage only worked for traditional old-school flatshading, it did ignore
constant interpolated values and only handled colors, the code probably
predates using of constant interpolated values in gallium. So fix this - the
clip stage apparently did this a long time ago already.
Unfortunately this also means the stage needs to be invoked when flatshading
isn't enabled but some other prim changing stages are - for instance with
fill mode line each of the 3 lines in a tri should get the same attribute
value from the leading vertex in the original tri if interpolation is constant,
which did not happen before
Due to that, the stage is now run in more cases, even unnecessary ones. Could
in theory skip it completely if there aren't any constant interpolated
attributes (and rast->flatshade isn't set), but not sure it's worth bothering,
as it looks kinda complicated getting this information in advance.

No piglit change (doesn't really cover this directly).

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/auxiliary/draw/draw_pipe_flatshade.c
fb61f75bf633e60c0f81fe8ae59d03bfa68d755b 10-Dec-2014 Roland Scheidegger <sroland@vmware.com> draw: copy over prim id header in flatshade stage when emitting lines

Just like we do for tris (det shouldn't matter at this point, however
can have flags for things like line stipple reset).

No piglit change, it would fail line stippling tests if the flatshade
stage were run, which will happen with the next commit.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/auxiliary/draw/draw_pipe_flatshade.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/draw/draw_pipe_flatshade.c
1c377cea1094c0b5414c663adf2fd393bf41ddfb 16-Jun-2010 Alan Hourihane <alanh@vmware.com> draw: handle some out of memory conditions
/external/mesa3d/src/gallium/auxiliary/draw/draw_pipe_flatshade.c
eb979cef8535914f428d2462e78f713da558fc18 28-Apr-2009 Keith Whitwell <keithw@vmware.com> gallium/draw: add ability to print out active pipeline stages
/external/mesa3d/src/gallium/auxiliary/draw/draw_pipe_flatshade.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/draw/draw_pipe_flatshade.c
807f8f177b3a2833806d84a70e71019f8849239f 11-Jun-2008 Keith Whitwell <keith@tungstengraphics.com> draw: preserve specular alpha when flatshading -- may be FOGC
/external/mesa3d/src/gallium/auxiliary/draw/draw_pipe_flatshade.c
2f0d1396e4c1626b3b1ac799bd29e86a9530369e 13-May-2008 Keith Whitwell <keith@tungstengraphics.com> draw: move some state into a new 'vs' area
/external/mesa3d/src/gallium/auxiliary/draw/draw_pipe_flatshade.c
f93332da5655a31b6c44a1079629a15360ff999b 24-Apr-2008 Keith Whitwell <keith@tungstengraphics.com> draw: handle edgeflags and reset-line-stipple again
/external/mesa3d/src/gallium/auxiliary/draw/draw_pipe_flatshade.c
0d4ece4c5a243dc4b684331bad49f220311e5520 21-Apr-2008 Keith Whitwell <keith@tungstengraphics.com> draw: propogate lots of errors
/external/mesa3d/src/gallium/auxiliary/draw/draw_pipe_flatshade.c
a918a9c744f656c8bf2e3fd2841732e01a5ccefc 21-Apr-2008 Keith Whitwell <keith@tungstengraphics.com> draw: consolidate all the passthrough line/tri/point funcs
/external/mesa3d/src/gallium/auxiliary/draw/draw_pipe_flatshade.c
507fbe2d327efb8d608ce8e07436b97321560808 19-Apr-2008 Keith Whitwell <keith@tungstengraphics.com> draw: move some pipeline-specific code & state to draw_pipe.[ch]
/external/mesa3d/src/gallium/auxiliary/draw/draw_pipe_flatshade.c
26831bdac594a11e51b6c4b09df78bb11444f5dd 19-Apr-2008 Keith Whitwell <keith@tungstengraphics.com> draw: rename pipeline files to draw_pipe_*
/external/mesa3d/src/gallium/auxiliary/draw/draw_pipe_flatshade.c