Jason Ekstrand
2612e569e0
i965/nir: Properly set the predicate on the SEL used in min/max
...
Reviewed-by: Matt Turner <mattst88@gmail.com >
2015-03-23 01:01:14 -07:00
Jason Ekstrand
80390f91a0
i965/nir: Use NIR lowering for ffma for gen < 6
...
Reviewed-by: Matt Turner <mattst88@gmail.com >
2015-03-23 01:01:14 -07:00
Jason Ekstrand
235c728020
i965/nir: Use emit_lrp for emitting flrp
...
Reviewed-by: Matt Turner <mattst88@gmail.com >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2015-03-23 01:01:14 -07:00
Jason Ekstrand
a3e05898e9
i965/fs: Make emit_lrp return an fs_inst
...
Reviewed-by: Matt Turner <mattst88@gmail.com >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2015-03-23 01:01:14 -07:00
Dave Airlie
484f9f4fcd
i965: define I915_PARAM_REVISION
...
we are broken against the libdrm 2.4.60 minimum specified,
so fix it for now.
Signed-off-by: Dave Airlie <airlied@redhat.com >
2015-03-23 09:55:33 +10:00
Jose Fonseca
397b491173
gallivm: Silence unused variable warnings on release builds.
...
Reviewed-by: Brian Paul <brianp@vmware.com >
2015-03-22 08:23:24 +00:00
Jose Fonseca
06ac717810
scons: Silence conversion from 'size_t' to 'type', possible loss of data on MSVC.
...
Most cases seem harmless, though that might not always be the case. Maybe
one day we can get gcc to complain about these and fix them throughout
the code, but until then let's silence them.
Reviewed-by: Brian Paul <brianp@vmware.com >
2015-03-22 08:23:24 +00:00
Jose Fonseca
15c5595bb1
scons: Ensure inttypes.h is always pre-included on MSVC.
...
It's a bit hackish couldn't find another solution. See code comment
for details. The warning is useful, so universally disabling doesn't
sound a good idea.
Fixes
warning C4005: 'xxx' : macro redefinition
Reviewed-by: Brian Paul <brianp@vmware.com >
2015-03-22 08:23:24 +00:00
Jose Fonseca
e4d95982ee
scons: Silence MSVC C4351 warning.
...
It warns about change in MSVC behavior -- array initialisation used to
be non-standard, but is standard now, assuming I understand correctly
http://en.cppreference.com/w/cpp/language/zero_initialization .
Reviewed-by: Brian Paul <brianp@vmware.com >
2015-03-22 08:23:24 +00:00
Jose Fonseca
e518d97d7e
scons: Match some of LLVM warning options.
...
Reviewed-by: Brian Paul <brianp@vmware.com >
2015-03-22 08:23:24 +00:00
Jose Fonseca
31e47a59ad
scons: Cleanup flex/bison settings specification.
...
Reviewed-by: Brian Paul <brianp@vmware.com >
2015-03-22 08:23:24 +00:00
Jose Fonseca
9c1c657e19
scons: Prefer winflexbison, and use --wincompat when available.
...
This avoids MSVC the warning
warning C4013: 'isatty' undefined; assuming extern returning int
with certain versions of flex.
Reviewed-by: Brian Paul <brianp@vmware.com >
v2: Add win flex-bison link to docs/install.html.
2015-03-22 08:23:24 +00:00
Jose Fonseca
015e8b6384
scons: Define YY_USE_CONST on MSVC.
...
This prevents the MSVC from
warning C4090: 'function' : different 'const' qualifiers
when compiling flex generated lexers.
Reviewed-by: Brian Paul <brianp@vmware.com >
2015-03-22 08:23:24 +00:00
Jose Fonseca
357d1fc81a
scons: Tell MSVC STL library to not use exceptions.
...
MSVC defaults to no exceptions unless /EH option is passed (which we don't), while
MSVC's STL defaults to use exceptions unless _HAS_EXCEPTIONS=0 is defined,
which we didn't.
This fixes
warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
Reviewed-by: Brian Paul <brianp@vmware.com >
2015-03-22 08:23:24 +00:00
Jose Fonseca
e6330f9f56
scons: Ensure git_sha1.h's directory exists.
...
Reviewed-by: Brian Paul <brianp@vmware.com >
2015-03-22 08:23:24 +00:00
Jose Fonseca
8f0274c6c6
configure: Bail out with MinGW targets.
...
We only support native Windows builds with SCons.
Tested with:
./configure --host=i686-w64-mingw32
Reviewed-by: Brian Paul <brianp@vmware.com >
2015-03-22 08:23:24 +00:00
Jose Fonseca
8d5c303ab9
include: Ensure float.h is included for DBL_MAX.
...
I didn't actually hit the issue in practice, but just happen to notice
while looking at the code.
Reviewed-by: Brian Paul <brianp@vmware.com >
2015-03-22 08:23:24 +00:00
Jose Fonseca
60eff44277
st/vdpau: Avoid constness cast warnings.
...
Fixes MSVC
warning C4090: '=' : different 'const' qualifiers
Reviewed-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
2015-03-22 08:23:24 +00:00
Jose Fonseca
fb78cccd7b
glsl: Disable MSVC switch warning on a per-file basis.
...
This addresses
...\glsl_parser.cpp(...) : warning C4065: switch statement contains 'default' but no 'case' labels
This is on code generated by bison, which we have little control.
It seems useful to have this warning otherwise enabled.
Reviewed-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2015-03-22 08:23:23 +00:00
Jose Fonseca
d01a7cdae5
glsl: Avoid GLboolean vs bool arithmetic MSVC warnings.
...
Note that GLboolean is an alias for unsigned char, which lacks the
implicit true/false semantics that C++/C99 bool have.
Reviewed-by: Brian Paul <brianp@vmware.com >
v2: Change gl_shader::IsES and gl_shader_program::IsES to be bool as
recommended by Ian Romanick.
Reviewed-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2015-03-22 08:23:23 +00:00
Emil Velikov
7c7954b09d
galahad: actually remove the driver
...
Should have been part of 429a4355259(galahad: remove driver). Seems like
I've erroneously committed the trimmed patch.
Reported-by: Marek Olšák <marek.olsak@amd.com >
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
2015-03-21 22:35:27 +00:00
Emil Velikov
bbaf22a998
egl: cut down static storage size for {Version,ClientAPI}String
...
Both seems to be excessively long, namely:
ClientAPIString can get up-to 47 based on current code, while the name
of the driver can dictate the length of the VersionString, currently it
is around 11. Let's pad each to 100, rather than the current 1000.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2015-03-21 17:22:19 +00:00
Emil Velikov
0bff196b22
docs: note the removal of gbm_gallium, galahad and identity
...
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
2015-03-21 17:21:30 +00:00
Emil Velikov
429a435525
galahad: remove driver
...
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Acked-by: Matt Turner <mattst88@gmail.com >
2015-03-21 17:18:28 +00:00
Emil Velikov
84041bab3f
gallium/docs: remove information about identity driver
...
Removed from tree.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Acked-by: Matt Turner <mattst88@gmail.com >
2015-03-21 17:18:25 +00:00
Emil Velikov
55029b2bab
docs: update the egl_platforms list
...
Add the missing wayland, null, android and haiku platforms.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Acked-by: Matt Turner <mattst88@gmail.com >
2015-03-21 17:16:44 +00:00
Emil Velikov
0d6e7620f3
egl/main: drop platform fbdev specific code
...
st/egl was the only one which had support for this platform.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Acked-by: Matt Turner <mattst88@gmail.com >
2015-03-21 17:16:41 +00:00
Emil Velikov
65a8d4d6dd
winsys/sw/fbdev: remove unused software winsys
...
st/egl was its only user.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Acked-by: Matt Turner <mattst88@gmail.com >
2015-03-21 17:16:38 +00:00
Emil Velikov
1081ed9dc3
winsys/sw/wayland: remove unused winsys
...
st/egl was its only user.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Acked-by: Matt Turner <mattst88@gmail.com >
2015-03-21 17:16:35 +00:00
Emil Velikov
48c7461d5a
st/gbm: remove state-tracker
...
st/egl was its only user.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Acked-by: Matt Turner <mattst88@gmail.com >
2015-03-21 17:16:27 +00:00
Roland Scheidegger
e8039208c4
llvmpipe: use global llvm context for PIPE_SUBSYSTEM_EMBEDDED
...
There's 2 reasons why we'd want to use the global context:
1) There still seems to be one memory "leak" left when using multiple llvm
contexts (it is not a true leak as the memory disappears into some still
addressable pool but nevertheless the memory consumption grows). See
http://cgit.freedesktop.org/~jrfonseca/llvm-jitstress/
2) These contexts get kinda big - even when disposing modules etc. after
compiling a shader the LLVMContext can easily be over 100kB. So when there's
lots of llvm contexts arounds it adds up.
The downside is that at least right now this is absolutely not thread safe,
so this only works safely in environments where multiple pipe contexts are not
used concurrently.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com >
2015-03-21 01:52:03 +01:00
Emil Velikov
b2dccfd17e
docs: add news item and link release notes for mesa 10.4.7
...
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
2015-03-21 00:54:14 +00:00
Emil Velikov
0030eef62b
docs: Add sha256 sums for the 10.4.7 release
...
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
(cherry picked from commit cb154bb22116910c462f7a83f4401bd01e15c34d)
2015-03-21 00:53:22 +00:00
Emil Velikov
befb5d1c94
Add release notes for the 10.4.7 release
...
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
(cherry picked from commit d26f3c1f860e267964d2bd74a86235ae702af3f4)
2015-03-21 00:53:21 +00:00
Dave Airlie
ad6ede260f
mesa: reorder gl_light_attrib
...
reduces from 2664->2656.
Acked-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Alex Deucher alexander.deucher@amd.com >
Signed-off-by: Dave Airlie <airlied@redhat.com >
2015-03-21 08:14:41 +10:00
Dave Airlie
b99c7defac
mesa: reorder gl_framebuffer
...
this reduces it from 1088 -> 1080 bytes
Acked-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Alex Deucher alexander.deucher@amd.com >
Signed-off-by: Dave Airlie <airlied@redhat.com >
2015-03-21 08:14:38 +10:00
Dave Airlie
727eb4c4e7
mesa: fix hole in vertex_array_object
...
this just removes 4 bytes from this object.
Acked-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Alex Deucher alexander.deucher@amd.com >
Signed-off-by: Dave Airlie <airlied@redhat.com >
2015-03-21 08:14:33 +10:00
Dave Airlie
974e4783a5
mesa: repack gl_texture_attrib.
...
This removes a hole, and puts the large allocation at the end,
Acked-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Alex Deucher alexander.deucher@amd.com >
Signed-off-by: Dave Airlie <airlied@redhat.com >
2015-03-21 08:14:29 +10:00
Dave Airlie
2dbd8284e7
mesa: reduce gl_colorbuffer_attrib and gl_fog_attrib
...
These 392->388 and 72->68.
Acked-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Alex Deucher alexander.deucher@amd.com >
Signed-off-by: Dave Airlie <airlied@redhat.com >
2015-03-21 08:14:25 +10:00
Dave Airlie
2c016ed35f
mesa: reorder gl_image_unit
...
reduces 40->32
but reduces use in context from 7680->6144.
Acked-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Alex Deucher alexander.deucher@amd.com >
Signed-off-by: Dave Airlie <airlied@redhat.com >
2015-03-21 08:14:21 +10:00
Dave Airlie
0ff4726a06
mesa: reorder gl_program, gl_shader, gl_shader_program
...
gl_program : 1344->1336
gl_shader: 488->472
gl_shader_program: 352->344.
Acked-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Alex Deucher alexander.deucher@amd.com >
Signed-off-by: Dave Airlie <airlied@redhat.com >
2015-03-21 08:14:16 +10:00
Dave Airlie
7b634fed59
mesa: reorder gl_transform_feedback_object
...
Reduces size from 184 to 176 bytes.
Acked-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Alex Deucher alexander.deucher@amd.com >
Signed-off-by: Dave Airlie <airlied@redhat.com >
2015-03-21 08:14:09 +10:00
Dave Airlie
e17b0435c5
mesa: reorder prog_instruction
...
reduces size from 64 to 56 bytes.
Acked-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Alex Deucher alexander.deucher@amd.com >
Signed-off-by: Dave Airlie <airlied@redhat.com >
2015-03-21 08:14:05 +10:00
Dave Airlie
401b11843b
mesa: reorder gl_array_attrib
...
drops 80 bytes to 72.
Acked-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Alex Deucher alexander.deucher@amd.com >
Signed-off-by: Dave Airlie <airlied@redhat.com >
2015-03-21 08:14:00 +10:00
Dave Airlie
b3f6e0bb58
mesa: reorder gl_client_array
...
drops from 56 to 48 bytes,
drops gl_vertex_array_object from 4584 to 4320 bytes
Acked-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Alex Deucher alexander.deucher@amd.com >
Signed-off-by: Dave Airlie <airlied@redhat.com >
2015-03-21 08:13:56 +10:00
Dave Airlie
cbaff50828
mesa: reorder gl_texture_unit
...
drops size from 520 -> 512 bytes,
which then makes gl_texture_attrib go from 99984 to 98440.
Acked-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Alex Deucher alexander.deucher@amd.com >
Signed-off-by: Dave Airlie <airlied@redhat.com >
2015-03-21 08:13:51 +10:00
Dave Airlie
83606b4904
mesa: reorder gl_point_attrib
...
this drops the size from 52 bytes to 48 bytes.
Acked-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Alex Deucher alexander.deucher@amd.com >
Signed-off-by: Dave Airlie <airlied@redhat.com >
2015-03-21 08:13:47 +10:00
Dave Airlie
684c914014
mesa: reorder gl_multisample_attrib
...
drops size from 28 bytes to 20.
Acked-by: Brian Paul <brianp@vmware.com >
Reviewed-by: Alex Deucher alexander.deucher@amd.com >
Signed-off-by: Dave Airlie <airlied@redhat.com >
2015-03-21 08:13:17 +10:00
Ian Romanick
a04b520890
i965/fs: Use correct null destination register in cmod tests
...
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com >
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89670
Reviewed-by: Matt Turner <mattst88@gmail.com >
Cc: Vinson Lee <vlee@freedesktop.org >
2015-03-20 12:27:02 -07:00
Connor Abbott
ccb9cbc849
i965/fs: bail on move-to-flag in sel peephole
...
Fixes a piglit regression
(shaders/glsl-fs-vec4-indexing-temp-dst-in-nested-loop-combined) with
my series for GVN.
Reviewed-by: Matt Turner <mattst88@gmail.com >
Signed-off-by: Connor Abbott <cwabbott0@gmail.com >
2015-03-20 11:53:11 -04:00