mesa.git
9 years agoglsl: remove extern "C" around #includes
Brian Paul [Mon, 15 Dec 2014 23:41:58 +0000 (16:41 -0700)]
glsl: remove extern "C" around #includes

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
9 years agost/mesa: add extern "C" to st_context.h
Brian Paul [Mon, 15 Dec 2014 23:49:54 +0000 (16:49 -0700)]
st/mesa: add extern "C" to st_context.h

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
9 years agost/mesa: add extern "C" to st_program.h
Brian Paul [Mon, 15 Dec 2014 23:46:46 +0000 (16:46 -0700)]
st/mesa: add extern "C" to st_program.h

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
9 years agomain: remove extern C around #includes in ff_fragment_shader.cpp
Brian Paul [Mon, 15 Dec 2014 23:45:57 +0000 (16:45 -0700)]
main: remove extern C around #includes in ff_fragment_shader.cpp

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
9 years agomesa: move #include of mtypes.h outside __cplusplus check
Brian Paul [Mon, 15 Dec 2014 23:41:29 +0000 (16:41 -0700)]
mesa: move #include of mtypes.h outside __cplusplus check

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
9 years agoprogram: add #ifndef SAMPLER_H wrapper
Brian Paul [Tue, 16 Dec 2014 00:01:22 +0000 (17:01 -0700)]
program: add #ifndef SAMPLER_H wrapper

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
9 years agomesa: put extern "C" in src/mesa/program/*h header files
Brian Paul [Mon, 15 Dec 2014 23:37:35 +0000 (16:37 -0700)]
mesa: put extern "C" in src/mesa/program/*h header files

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
9 years agomesa: put extern "C" in header files
Brian Paul [Mon, 15 Dec 2014 23:36:27 +0000 (16:36 -0700)]
mesa: put extern "C" in header files

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
9 years agomapi: add glapi-test and shared-glapi-test to .gitignore
Juha-Pekka Heikkila [Tue, 16 Dec 2014 10:28:49 +0000 (12:28 +0200)]
mapi: add glapi-test and shared-glapi-test to .gitignore

On the same go remove src/mapi/shared-glapi/tests/.gitignore
and src/mapi/glapi/tests/.gitignore as useless.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
9 years agoutil: add u_atomic_test to .gitignore
Juha-Pekka Heikkila [Tue, 16 Dec 2014 10:28:48 +0000 (12:28 +0200)]
util: add u_atomic_test to .gitignore

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
9 years agoglx: remove __glXstrdup()
Juha-Pekka Heikkila [Tue, 16 Dec 2014 10:28:47 +0000 (12:28 +0200)]
glx: remove __glXstrdup()

I didn't find this being used anywhere

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
9 years agoi965: add test_vf_float_conversions to .gitignore
Juha-Pekka Heikkila [Tue, 16 Dec 2014 10:28:46 +0000 (12:28 +0200)]
i965: add test_vf_float_conversions to .gitignore

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
9 years agoi965: Make validate_reg tables constant
Juha-Pekka Heikkila [Tue, 16 Dec 2014 10:28:45 +0000 (12:28 +0200)]
i965: Make validate_reg tables constant

Declare local tables constant.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
9 years agoglsl: remove commented out code
Timothy Arceri [Mon, 15 Dec 2014 07:15:34 +0000 (18:15 +1100)]
glsl: remove commented out code

MaxGeometryOutputComponents is used as the value
for gl_MaxGeometryVaryingComponents

Acked-by: Matt Turner <mattst88@gmail.com>
9 years agoi965: remove commented out code
Timothy Arceri [Mon, 15 Dec 2014 07:10:12 +0000 (18:10 +1100)]
i965: remove commented out code

Acked-by: Matt Turner <mattst88@gmail.com>
9 years agonvc0: add missed PIPE_CAP_VERTEXID_NOBASE
Ilia Mirkin [Tue, 16 Dec 2014 04:17:28 +0000 (23:17 -0500)]
nvc0: add missed PIPE_CAP_VERTEXID_NOBASE

Commit ade8b26bf missed adding this cap to nvc0.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
9 years agost/mesa: use vertex id lowering according to pipe cap bit.
Roland Scheidegger [Fri, 12 Dec 2014 03:14:02 +0000 (04:14 +0100)]
st/mesa: use vertex id lowering according to pipe cap bit.

Tested with llvmpipe by setting the cap bit temporarily, seems to work,
though no driver requests it for now.

9 years agodraw: implement support for the VERTEXID_NOBASE and BASEVERTEX semantics.
Roland Scheidegger [Fri, 12 Dec 2014 03:13:54 +0000 (04:13 +0100)]
draw: implement support for the VERTEXID_NOBASE and BASEVERTEX semantics.

This fixes 4 vertexid related piglit tests with llvmpipe due to switching
behavior of vertexid to the one gl expects.
(Won't fix non-llvm draw path since we don't get the basevertex currently.)

9 years agogallium: add TGSI_SEMANTIC_VERTEXID_NOBASE and TGSI_SEMANTIC_BASEVERTEX
Roland Scheidegger [Fri, 12 Dec 2014 03:13:43 +0000 (04:13 +0100)]
gallium: add TGSI_SEMANTIC_VERTEXID_NOBASE and TGSI_SEMANTIC_BASEVERTEX

Plus a new PIPE_CAP_VERTEXID_NOBASE query. The idea is that drivers not
supporting vertex ids with base vertex offset applied (so, only support
d3d10-style vertex ids) will get such a d3d10-style vertex id instead -
with the caveat they'll also need to handle the basevertex system value
too (this follows what core mesa already does).
Additionally, this is also useful for other state trackers (for instance
llvmpipe / draw right now implement the d3d10 behavior on purpose, but
with different semantics it can just do both).
Doesn't do anything yet.
And fix up the docs wrt similar values.

v2: incorporate feedback from Brian and others, better names, better docs.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
9 years agor600g/sb: implement r600 gpr index workaround. (v3.1)
Dave Airlie [Tue, 9 Dec 2014 06:46:55 +0000 (16:46 +1000)]
r600g/sb: implement r600 gpr index workaround. (v3.1)

r600, rv610 and rv630 all have a bug in their GPR indexing
and how the hw inserts access to PV.

If the base index for the src is the same as the dst gpr
in a previous group, then it will use PV instead of using
the indexed gpr correctly.

The workaround is to insert a NOP when you detect this.

v2: add second part of fix detecting DST rel writes followed
by same src base index reads.

v3: forget adding stuff to structs, just iterate over the
previous node group again, makes it more obvious.
v3.1: drop local_nop.

Fixes ~200 piglit regressions on rv635 since SB was introduced.

Reviewed-By: Glenn Kennard <glenn.kennard@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
9 years agor600g/sb: fix issues with loops created for switch
Vadim Girlin [Wed, 10 Dec 2014 11:41:10 +0000 (14:41 +0300)]
r600g/sb: fix issues with loops created for switch

Signed-off-by: Dave Airlie <airlied@redhat.com>
9 years agoRevert "r600g/sb: fix issues cause by GLSL switching to loops for switch"
Dave Airlie [Tue, 9 Dec 2014 00:11:46 +0000 (10:11 +1000)]
Revert "r600g/sb: fix issues cause by GLSL switching to loops for switch"

This reverts commit 7b0067d23a6f64cf83c42e7f11b2cd4100c569fe.

Vadim's patch fixes this a lot better.

9 years agovc4: Add support for 32-bit signed norm/scaled vertex attrs.
Eric Anholt [Mon, 15 Dec 2014 20:37:42 +0000 (12:37 -0800)]
vc4: Add support for 32-bit signed norm/scaled vertex attrs.

32-bit unsigned would require some adjustments to handle values >=
0x80000000.

9 years agovc4: Add support for 16-bit signed/unsigned norm/scaled vertex attrs.
Eric Anholt [Mon, 15 Dec 2014 20:30:26 +0000 (12:30 -0800)]
vc4: Add support for 16-bit signed/unsigned norm/scaled vertex attrs.

9 years agovc4: Rename the 16-bit unpack #define.
Eric Anholt [Mon, 15 Dec 2014 20:26:29 +0000 (12:26 -0800)]
vc4: Rename the 16-bit unpack #define.

It's only an f16 conversion if you're doing a float operation, otherwise
it's 16 bit signed to 32-bit signed.

9 years agovc4: Add support for 8-bit unnormalized vertex attrs.
Eric Anholt [Mon, 15 Dec 2014 19:19:58 +0000 (11:19 -0800)]
vc4: Add support for 8-bit unnormalized vertex attrs.

9 years agovc4: Refactor vertex attribute conversions a bit.
Eric Anholt [Mon, 15 Dec 2014 19:25:23 +0000 (11:25 -0800)]
vc4: Refactor vertex attribute conversions a bit.

There was just way too much indentation.

9 years agovc4: Fix use of r3 as a temp in 8-bit unpacking.
Eric Anholt [Mon, 15 Dec 2014 19:10:14 +0000 (11:10 -0800)]
vc4: Fix use of r3 as a temp in 8-bit unpacking.

We're actually allocating out of r3 now, and I missed it because I'd typed
this one as qpu_rn(3) instead of qpu_r3().

9 years agovc4: Rename UNPACK_8* to UNPACK_8*_F.
Eric Anholt [Mon, 15 Dec 2014 18:45:58 +0000 (10:45 -0800)]
vc4: Rename UNPACK_8* to UNPACK_8*_F.

There is an equivalent unpack function without conversion to float if you
use an integer operation instead.

9 years agovc4: Add support for UMAD.
Eric Anholt [Mon, 15 Dec 2014 17:24:16 +0000 (09:24 -0800)]
vc4: Add support for UMAD.

9 years agovc4: 0-initialize the screen again.
Eric Anholt [Mon, 15 Dec 2014 17:08:09 +0000 (09:08 -0800)]
vc4: 0-initialize the screen again.

I typoed this when rebasing the memory leak fixes.

9 years agoglsl: Add gl_MaxViewports to available builtin constants
Maxence Le Doré [Wed, 10 Dec 2014 07:09:24 +0000 (08:09 +0100)]
glsl: Add gl_MaxViewports to available builtin constants

It seems to have been forgotten during viewports array implementation time.

Cc: "10.4 10.3" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
9 years agoi965/brw_reg: struct constructor now needs explicit negate and abs values.
Andres Gomez [Fri, 12 Dec 2014 16:19:07 +0000 (17:19 +0100)]
i965/brw_reg: struct constructor now needs explicit negate and abs values.

We were assuming, when constructing a new brw_reg struct, that the
negate and abs register modifiers would not be present by default in
the new register.

Now, we force explicitly setting these values when constructing a new
register.

This will avoid problems like forgetting to properly set them when we
are using a previous register to generate this new register, as it was
happening in the dFdx and dFdy generation functions.

Fixes piglit test shaders/glsl-deriv-varyings

Cc: "10.4 10.3" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82991
Reviewed-by: Matt Turner <mattst88@gmail.com>
9 years agovc4: Fix leaks of the compiled shaders' keys.
Eric Anholt [Mon, 15 Dec 2014 04:50:15 +0000 (20:50 -0800)]
vc4: Fix leaks of the compiled shaders' keys.

9 years agovc4: Fix leaks of the CL contents.
Eric Anholt [Mon, 15 Dec 2014 04:41:25 +0000 (20:41 -0800)]
vc4: Fix leaks of the CL contents.

9 years agovc4: Fix leak of vc4_bos stashed in the context.
Eric Anholt [Mon, 15 Dec 2014 04:39:49 +0000 (20:39 -0800)]
vc4: Fix leak of vc4_bos stashed in the context.

9 years agovc4: Fix leak of the compiled shader programs in the cache.
Eric Anholt [Mon, 15 Dec 2014 04:29:10 +0000 (20:29 -0800)]
vc4: Fix leak of the compiled shader programs in the cache.

9 years agovc4: Fix leak of a copy of the scheduled QPU instructions.
Eric Anholt [Mon, 15 Dec 2014 04:28:13 +0000 (20:28 -0800)]
vc4: Fix leak of a copy of the scheduled QPU instructions.

They're copied into a vc4_bo after compiling is done.

9 years agovc4: Switch to using the util/ hash table.
Eric Anholt [Mon, 15 Dec 2014 03:48:51 +0000 (19:48 -0800)]
vc4: Switch to using the util/ hash table.

No performance difference on a microbenchmark with norast that should hit it
enough to have mattered, n=220.

9 years agovc4: Fix leak of simulator memory on screen cleanup.
Eric Anholt [Sun, 14 Dec 2014 00:40:54 +0000 (16:40 -0800)]
vc4: Fix leak of simulator memory on screen cleanup.

9 years agovc4: Fix a leak of the simulator's exec BO's actual vc4_bo.
Eric Anholt [Sun, 14 Dec 2014 00:37:28 +0000 (16:37 -0800)]
vc4: Fix a leak of the simulator's exec BO's actual vc4_bo.

9 years agohash_table: Fix compiler warnings from the renaming.
Eric Anholt [Mon, 15 Dec 2014 04:21:32 +0000 (20:21 -0800)]
hash_table: Fix compiler warnings from the renaming.

Not sure how we both missed this.  None of the callers were using the
return value, though.

9 years agoutil/hash_table: Rework the API to know about hashing
Jason Ekstrand [Tue, 25 Nov 2014 06:19:50 +0000 (22:19 -0800)]
util/hash_table: Rework the API to know about hashing

Previously, the hash_table API required the user to do all of the hashing
of keys as it passed them in.  Since the hashing function is intrinsically
tied to the comparison function, it makes sense for the hash table to know
about it.  Also, it makes for a somewhat clumsy API as the user is
constantly calling hashing functions many of which have long names.  This
is especially bad when the standard call looks something like

_mesa_hash_table_insert(ht, _mesa_pointer_hash(key), key, data);

In the above case, there is no reason why the hash table shouldn't do the
hashing for you.  We leave the option for you to do your own hashing if
it's more efficient, but it's no longer needed.  Also, if you do do your
own hashing, the hash table will assert that your hash matches what it
expects out of the hashing function.  This should make it harder to mess up
your hashing.

v2: change to call the old entrypoint "pre_hashed" rather than
    "with_hash", like cworth's equivalent change upstream (change by
    anholt, acked-in-general by Jason).

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
9 years agoglx/dri3: Don't fail on glXSwapBuffersMscOML(dpy, window, 0, 0, 0) (v2)
Mario Kleiner [Fri, 5 Dec 2014 07:42:32 +0000 (08:42 +0100)]
glx/dri3: Don't fail on glXSwapBuffersMscOML(dpy, window, 0, 0, 0) (v2)

glXSwapBuffersMscOML() with target_msc=divisor=remainder=0 gets
translated into target_msc=divisor=0 but remainder=1 by the mesa
api. This is done for server DRI2 where there needs to be a way
to tell the server-side DRI2ScheduleSwap implementation if a call
to glXSwapBuffers() or glXSwapBuffersMscOML(dpy,window,0,0,0) was
done. remainder = 1 was (ab)used as a flag to tell the server to
select proper semantic. The DRI3/Present backend ignored this
signalling, treated any target_msc=0 as glXSwapBuffers() request,
and called xcb_present_pixmap with invalid divisor=0, remainder=1
combo. The present extension responded kindly to this with a
BadValue error and dropped the request, but mesa's DRI3/Present
backend doesn't check for error codes. From there on stuff went
downhill quickly for the calling OpenGL client...

This patch fixes the problem.

v2: Change comments to be more clear, with reference to
relevant spec, as suggested by Eric Anholt.

Cc: "10.3 10.4" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Eric Anholt <eric@anholt.net>
9 years agoglx/dri3: Request non-vsynced Present for swapinterval zero. (v3)
Mario Kleiner [Fri, 5 Dec 2014 07:42:31 +0000 (08:42 +0100)]
glx/dri3: Request non-vsynced Present for swapinterval zero. (v3)

Restores proper immediate tearing swap behaviour for
OpenGL bufferswap under DRI3/Present.

Cc: "10.3 10.4" <mesa-stable@lists.freedesktop.org>
v2: Add Frank Binns signed off by for his original earlier
patch from April 2014, which is identical to this one, and
Chris Wilsons reviewed tag from May 2014 for that patch, ergo
also for this one.

v3: Incorporate comment about triple buffering as suggested
by Axel Davy, and reference to relevant spec provided by
Eric Anholt.

Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Eric Anholt <eric@anholt.net>
9 years agoglx/dri3: Track separate (ust, msc) for PresentPixmap vs. PresentNotifyMsc (v2)
Mario Kleiner [Fri, 5 Dec 2014 07:42:30 +0000 (08:42 +0100)]
glx/dri3: Track separate (ust, msc) for PresentPixmap vs. PresentNotifyMsc (v2)

Prevent calls to glXGetSyncValuesOML() and glXWaitForMscOML()
from overwriting the (ust,msc) values of the last successfull
swapbuffers call (PresentPixmapCompleteNotify event), as
glXWaitForSbcOML() relies on those values corresponding to
the most recent completed swap, not to whatever was last
returned from the server.

Problematic call sequence without this patch would have been, e.g.,

glXSwapBuffers()
... wait ...
swap completes -> PresentPixmapComplete event -> (ust,msc)
updated to reflect swap completion time and count.
... wait for at least 1 video refresh cycle/vblank increment.

glXGetSyncValuesOML()
-> PresentNotifyMsc event overwrites (ust,msc) of swap
completion with (ust,msc) of most recent vblank

glXWaitForSbcOML()
-> Returns sbc of last completed swap but (ust,msc) of last
completed vblank, not of last completed swap.
-> Client is confused.

Do this by tracking a separate set of (ust, msc) for the
dri3_wait_for_msc() call than for the dri3_wait_for_sbc()
call.

This makes the glXWaitForSbcOML() call robust again and restores
consistent behaviour with the DRI2 implementation.

Fixes applications originally written and tested against
DRI2 which also rely on this not regressing under DRI3/Present,
e.g., Neuro-Science software like Psychtoolbox-3.

This patch fixes the problem.

v2: Rename vblank_msc/ust to notify_msc/ust as suggested by
Axel Davy for better clarity.

Cc: "10.3 10.4" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
9 years agoglx/dri3: Fix glXWaitForSbcOML() to handle targetSBC==0 correctly. (v2)
Mario Kleiner [Fri, 5 Dec 2014 07:42:29 +0000 (08:42 +0100)]
glx/dri3: Fix glXWaitForSbcOML() to handle targetSBC==0 correctly. (v2)

targetSBC == 0 is a special case, which asks the function
to block until all pending OpenGL bufferswap requests have
completed.

Currently the function just falls through for targetSBC == 0,
returning bogus results.

This breaks applications originally written and tested against
DRI2 which also rely on this not regressing under DRI3/Present,
e.g., Neuro-Science software like Psychtoolbox-3.

This patch fixes the problem.

v2: Simplify as suggested by Axel Davy. Add comments proposed
by Eric Anholt.

Cc: "10.3 10.4" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Eric Anholt <eric@anholt.net>
9 years agodocs: Add 10.4 sha256 sums, news item and link release notes
Emil Velikov [Sun, 14 Dec 2014 13:57:54 +0000 (13:57 +0000)]
docs: Add 10.4 sha256 sums, news item and link release notes

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
(cherry picked from commit af0c82099b955f10471c15cb7a4dc8db29b84963)

Conflicts:
docs/index.html
docs/relnotes.html

9 years agodocs: Update 10.4.0 release notes
Emil Velikov [Sun, 14 Dec 2014 13:45:54 +0000 (13:45 +0000)]
docs: Update 10.4.0 release notes

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
(cherry picked from commit 5fe79b0b1272d530371a5d7248ed378cff4f6d21)

9 years agofreedreno/a4xx: mipmaps
Rob Clark [Fri, 12 Dec 2014 18:38:05 +0000 (13:38 -0500)]
freedreno/a4xx: mipmaps

Signed-off-by: Rob Clark <robclark@freedesktop.org>
9 years agofreedreno: update generated headers
Rob Clark [Fri, 12 Dec 2014 18:34:57 +0000 (13:34 -0500)]
freedreno: update generated headers

Signed-off-by: Rob Clark <robclark@freedesktop.org>
9 years agofreedreno: add is_a3xx()/is_a4xx() helpers
Rob Clark [Fri, 12 Dec 2014 23:51:36 +0000 (18:51 -0500)]
freedreno: add is_a3xx()/is_a4xx() helpers

A bunch of open-coded 'gpu_id > 300's seems like it will eventually
cause problems with future generations.  There were already a few minor
problems with caps for features that still need additional work on a4xx.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
9 years agofreedreno: helper to calc layer/level offset
Rob Clark [Fri, 12 Dec 2014 22:20:50 +0000 (17:20 -0500)]
freedreno: helper to calc layer/level offset

Rather than duplicating this everywhere.  Especially as on a4xx the
layout of layers and levels differs based on texture type.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
9 years agoi965/vec4: Drop writemasks on scratch reads.
Kenneth Graunke [Wed, 10 Dec 2014 08:52:50 +0000 (00:52 -0800)]
i965/vec4: Drop writemasks on scratch reads.

This code is complete nonsense and has apparently existed since I first
implemented register spilling in the VS two years ago.

Scratch reads are SEND messages, which ignore the destination writemask.

The comment about "data that may not have been written to scratch" is
also confusing - we always spill whole 4x2 registers, so such data
simply does not exist.  We can safely ignore the writemask.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
9 years agomesa: remove long dead 3Dnow optimisation
Timothy Arceri [Fri, 12 Dec 2014 12:13:57 +0000 (23:13 +1100)]
mesa: remove long dead 3Dnow optimisation

This code has been turned off for the last
decade. Considering 3Dnow is obsolete it
seems the bug will never be fixed so just
remove it.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
9 years agoir_to_mesa: remove unused 'target' variable
Brian Paul [Fri, 12 Dec 2014 23:45:33 +0000 (16:45 -0700)]
ir_to_mesa: remove unused 'target' variable

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
9 years agoutil: add missing closing brace for __cplusplus
Brian Paul [Fri, 12 Dec 2014 23:45:33 +0000 (16:45 -0700)]
util: add missing closing brace for __cplusplus

9 years agomesa: remove obsolete comment on _mesa_ClearColor()
Brian Paul [Fri, 12 Dec 2014 23:45:33 +0000 (16:45 -0700)]
mesa: remove obsolete comment on _mesa_ClearColor()

9 years agomesa: whitespace fixes, 80-column wrapping in texobj.c
Brian Paul [Fri, 12 Dec 2014 23:45:33 +0000 (16:45 -0700)]
mesa: whitespace fixes, 80-column wrapping in texobj.c

9 years agomesa: whitespace, line wrap fixes in clear.c
Brian Paul [Fri, 12 Dec 2014 23:45:33 +0000 (16:45 -0700)]
mesa: whitespace, line wrap fixes in clear.c

9 years agomapi: Move rules for generating glapi_mapi_tmp.h out of the conditional.
Matt Turner [Fri, 12 Dec 2014 20:09:34 +0000 (12:09 -0800)]
mapi: Move rules for generating glapi_mapi_tmp.h out of the conditional.

Allows distcheck to succeed, regardless of how Mesa has been configured.

9 years agoglsl: Add dist-hook to delete glcpp test *.out files.
Matt Turner [Sun, 7 Dec 2014 23:23:47 +0000 (15:23 -0800)]
glsl: Add dist-hook to delete glcpp test *.out files.

9 years agoglcpp: Make tests write .out files to builddir.
Matt Turner [Mon, 8 Dec 2014 07:43:00 +0000 (23:43 -0800)]
glcpp: Make tests write .out files to builddir.

9 years agogallium: Remove Android files from distribution.
Matt Turner [Sun, 7 Dec 2014 23:13:45 +0000 (15:13 -0800)]
gallium: Remove Android files from distribution.

Android builds Mesa from git, so there don't need to be in the tarball.

9 years agoosmesa: Add osmesa.def to distribution.
Matt Turner [Sun, 7 Dec 2014 23:10:39 +0000 (15:10 -0800)]
osmesa: Add osmesa.def to distribution.

9 years agox86-64: Remove calling_convention.txt.
Matt Turner [Sun, 7 Dec 2014 22:51:57 +0000 (14:51 -0800)]
x86-64: Remove calling_convention.txt.

It just details the x86-64 calling convention. No need for this in Mesa.

9 years agodrivers/x11: Add headers to distribution.
Matt Turner [Sun, 7 Dec 2014 22:51:23 +0000 (14:51 -0800)]
drivers/x11: Add headers to distribution.

9 years agodrivers/windows: Add to distribution.
Matt Turner [Sun, 7 Dec 2014 22:50:33 +0000 (14:50 -0800)]
drivers/windows: Add to distribution.

9 years agomesa: Add autogen.sh to distribution.
Matt Turner [Sun, 7 Dec 2014 22:48:15 +0000 (14:48 -0800)]
mesa: Add autogen.sh to distribution.

9 years agomapi: Add ABI-check tests to distribution.
Matt Turner [Sun, 7 Dec 2014 22:27:22 +0000 (14:27 -0800)]
mapi: Add ABI-check tests to distribution.

9 years agomesa: Add notes/readme files to distribution.
Matt Turner [Sun, 7 Dec 2014 22:12:33 +0000 (14:12 -0800)]
mesa: Add notes/readme files to distribution.

9 years agoutil: Wire up u_atomic_test.
Matt Turner [Sun, 7 Dec 2014 22:08:58 +0000 (14:08 -0800)]
util: Wire up u_atomic_test.

9 years agomesa: Add scons files to distribution.
Matt Turner [Sun, 7 Dec 2014 22:07:32 +0000 (14:07 -0800)]
mesa: Add scons files to distribution.

9 years agohaiku: Add files to distribution.
Matt Turner [Sun, 7 Dec 2014 22:00:03 +0000 (14:00 -0800)]
haiku: Add files to distribution.

9 years agoegl: Add files to distribution.
Matt Turner [Sun, 7 Dec 2014 21:33:38 +0000 (13:33 -0800)]
egl: Add files to distribution.

9 years agoegl+gbm: Add symbols-check tests to distribution.
Matt Turner [Sun, 7 Dec 2014 21:32:40 +0000 (13:32 -0800)]
egl+gbm: Add symbols-check tests to distribution.

9 years agodocs: Add to distribution.
Matt Turner [Sun, 7 Dec 2014 21:30:24 +0000 (13:30 -0800)]
docs: Add to distribution.

9 years agoglapi/gen: Add gl_and_glX_API.xml to distribution.
Matt Turner [Sun, 7 Dec 2014 21:27:35 +0000 (13:27 -0800)]
glapi/gen: Add gl_and_glX_API.xml to distribution.

9 years agoglx/apple: Add headers to distribution.
Matt Turner [Sun, 7 Dec 2014 21:24:28 +0000 (13:24 -0800)]
glx/apple: Add headers to distribution.

9 years agomesa: Add a dist hook to remove .gitignore files from distribution.
Matt Turner [Sun, 7 Dec 2014 21:21:53 +0000 (13:21 -0800)]
mesa: Add a dist hook to remove .gitignore files from distribution.

9 years agomesa: Add clean-local rule to remove .lib links.
Matt Turner [Sun, 7 Dec 2014 19:30:58 +0000 (11:30 -0800)]
mesa: Add clean-local rule to remove .lib links.

9 years agoglsl: Add clean-local rule to delete glcpp test output.
Matt Turner [Sun, 7 Dec 2014 19:29:55 +0000 (11:29 -0800)]
glsl: Add clean-local rule to delete glcpp test output.

9 years agoutil: List hash_table tests as check_PROGRAMS.
Matt Turner [Sun, 7 Dec 2014 19:29:00 +0000 (11:29 -0800)]
util: List hash_table tests as check_PROGRAMS.

EXTRA_PROGRAMS is not what you want for binaries listed in TEST.

9 years agoxmlpool: Add $(MOS) and options.h to CLEANFILES.
Matt Turner [Sun, 7 Dec 2014 18:54:08 +0000 (10:54 -0800)]
xmlpool: Add $(MOS) and options.h to CLEANFILES.

9 years agodri: Add uninstall hooks to handle megadriver hardlinks.
Matt Turner [Sun, 7 Dec 2014 08:12:29 +0000 (00:12 -0800)]
dri: Add uninstall hooks to handle megadriver hardlinks.

9 years agotargets/dri: Remove unnecessary variables in install-data-hook.
Matt Turner [Sun, 7 Dec 2014 08:00:27 +0000 (00:00 -0800)]
targets/dri: Remove unnecessary variables in install-data-hook.

9 years agoglx/tests: Add headers to distribution.
Matt Turner [Sun, 7 Dec 2014 07:46:37 +0000 (23:46 -0800)]
glx/tests: Add headers to distribution.

9 years agogallium/targets: Add *.sym files to distribution.
Matt Turner [Sun, 7 Dec 2014 07:22:20 +0000 (23:22 -0800)]
gallium/targets: Add *.sym files to distribution.

And add d3dadapter9's extra dependency.

9 years agoegl/dri2: Add headers to distribution.
Matt Turner [Sun, 7 Dec 2014 07:09:46 +0000 (23:09 -0800)]
egl/dri2: Add headers to distribution.

9 years agoegl: Drop unnecessary Makefile.am.
Matt Turner [Sun, 7 Dec 2014 07:04:12 +0000 (23:04 -0800)]
egl: Drop unnecessary Makefile.am.

9 years agoglx: Add headers to distribution.
Matt Turner [Sun, 7 Dec 2014 06:57:47 +0000 (22:57 -0800)]
glx: Add headers to distribution.

9 years agoglx: Alphabetize source lists.
Matt Turner [Sun, 7 Dec 2014 06:51:13 +0000 (22:51 -0800)]
glx: Alphabetize source lists.

And remove absurd tab-space-space indentation.

9 years agoswrast: Add headers to distribution.
Matt Turner [Sun, 7 Dec 2014 06:43:29 +0000 (22:43 -0800)]
swrast: Add headers to distribution.

9 years agor200: Add headers to distribution.
Matt Turner [Sun, 7 Dec 2014 06:05:47 +0000 (22:05 -0800)]
r200: Add headers to distribution.

9 years agor200: Alphabetize source list.
Matt Turner [Sun, 7 Dec 2014 06:01:40 +0000 (22:01 -0800)]
r200: Alphabetize source list.

9 years agoradeon: Add headers to distribution.
Matt Turner [Sun, 7 Dec 2014 06:01:07 +0000 (22:01 -0800)]
radeon: Add headers to distribution.

9 years agoradeon: Alphabetize source list.
Matt Turner [Sun, 7 Dec 2014 05:57:15 +0000 (21:57 -0800)]
radeon: Alphabetize source list.

9 years agonouveau: Add headers to distribution.
Matt Turner [Sun, 7 Dec 2014 05:56:41 +0000 (21:56 -0800)]
nouveau: Add headers to distribution.

9 years agonouveau: Alphabetize source list.
Matt Turner [Sun, 7 Dec 2014 05:55:35 +0000 (21:55 -0800)]
nouveau: Alphabetize source list.

9 years agoi965: Add headers to distribution.
Matt Turner [Sun, 7 Dec 2014 05:53:00 +0000 (21:53 -0800)]
i965: Add headers to distribution.