Zoltan Gilian
aa46fba7e6
clover: fix image resource depth and array_size
2015-08-03 13:47:19 +02:00
Timothy Arceri
ab5b7a0fe6
nir: Use a single bit for the dual-source blend index
...
The only values allowed are 0 and 1, and the value is checked before
assigning.
This is a copy of 8eeca7a56c that seems to have been made to the glsl
ir type after it was copied for use in nir but before nir landed.
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
2015-08-03 21:36:50 +10:00
Zoltan Gilian
9ef5b7a233
clover: pass image attributes to the kernel
...
Read-only and write-only image arguments are recognized and
distinguished.
Attributes of the image arguments are passed to the kernel as implicit
arguments.
2015-08-03 13:31:16 +02:00
Zoltan Gilian
d2cd2c69b2
clover: move find_kernels to functions
2015-08-03 13:31:08 +02:00
Timothy Arceri
cf5667108b
mesa: fix type for array indexing validation
...
parse_program_resource_name returns -1 when the index is invalid this needs to
be tested before assigning the value to the unsigned array_index.
In link_varyings.cpp (the other place parse_program_resource_name is used) after
the -1 check is done the value is just assigned to an unsigned variable so it
seems long is just used so we can return the -1 rather than actually expecting
index values to be ridiculously large.
Reviewed-by: Matt Turner <mattst88@gmail.com >
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
2015-08-03 21:28:12 +10:00
Marta Lofstedt
704e764f06
mesa/es3.1: Allow multisampled textures for GLES 3.1
...
GLES 3.1 must be allowed to create multisampled textures.
Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com >
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
2015-08-03 12:32:30 +03:00
Marta Lofstedt
2253a296c9
mesa/es3.1: Allow query of GL_TEXTURE_MULTISAMPLE
...
GLES 3.1 must allow a query for GL_TEXTURE_MULTISAMPLE.
Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com >
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
2015-08-03 12:32:06 +03:00
Marta Lofstedt
0fe81a25f7
mesa/es3.1: Allow enable of GL_SAMPLE_MASK
...
GLES 3.1 must be able to enable GL_SAMPLE_MASK.
Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com >
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
2015-08-03 12:31:38 +03:00
Marta Lofstedt
d74645d3ac
mesa/es3.1: Allow textures with target GL_TEXTURE_2D_MULTISAMPLE
...
GLES 3.1 should be able to bind a texture with the target
GL_TEXTURE_2D_MULTISAMPLE.
Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com >
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
2015-08-03 12:31:20 +03:00
Marta Lofstedt
a4bde371c7
mesa/es3.1: Allow GL_DEPTH_STENCIL_TEXTURE_MODE
...
GLES 3.1 must support the parameter GL_DEPTH_STENCIL_TEXTURE_MODE.
Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com >
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
2015-08-03 12:31:04 +03:00
Marta Lofstedt
4f8e4a95db
mesa/es3.1: Allow GL_SAMPLE_MASK
...
GLES 3.1 should be allowed to enable GL_SAMPLE_MASK.
Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com >
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
2015-08-03 12:30:50 +03:00
Marta Lofstedt
2e0179e2b3
mesa/es3.1: Allow binding GL_DRAW_INDIRECT_BUFFER with gles 3.1
...
Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com >
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
2015-08-03 12:18:08 +03:00
Marek Olšák
de59a40f68
r600g: re-enable single-sample fast clear
...
Fixed by the CB_SHADER_MASK fix.
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de >
Reviewed-by: Dave Airlie <airlied@redhat.com >
2015-08-03 00:18:41 +02:00
Marek Olšák
d4ad4c2061
r600g: fix the CB_SHADER_MASK setup
...
This fixes the single-sample fast clear hang.
Cc: 10.6 <mesa-stable@lists.freedesktop.org >
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de >
Reviewed-by: Dave Airlie <airlied@redhat.com >
2015-08-03 00:18:41 +02:00
Marek Olšák
828d20bdb7
r600g: fix the single-sample fast clear setup
...
No effect, but this is what we should be doing.
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de >
Reviewed-by: Dave Airlie <airlied@redhat.com >
2015-08-03 00:18:41 +02:00
Marek Olšák
08fd736a45
radeonsi: flush if the memory usage for an IB is too high
...
Picked from the amdgpu branch.
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
2015-08-02 22:03:33 +02:00
Igor Gnatenko
4d7e0fa8c7
opencl: use versioned .so in mesa.icd
...
We must have versioned library in mesa.icd, because ICD loader would
fail if the mesa-devel package wasn't installed.
Cc: "10.6" <mesa-stable@lists.freedesktop.org >
Reported-by: Fabian Deutsch <fabian.deutsch@gmx.de >
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73512
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com >
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com >
Acked-by: Michel Dänzer <michel.daenzer@amd.com >
2015-08-01 17:14:02 +01:00
Emil Velikov
2b831334e9
includes/GL: remove duplicated extension declarations from glx.h
...
All three of GLX_NV_float_buffer, GLX_EXT_texture_from_pixmap and
GLX_MESA_query_renderer have been in glxext.h for a while now.
As such we can drop this workaround/hack from the header.
v2: Remove the comment about GLX_NV_float_buffer.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Reviewed-by: Brian Paul <brianp@vmware.com > (v1)
2015-08-01 15:47:55 +01:00
Emil Velikov
6f2d88927a
docs: rename/bump 10.7.0 release notes to 11.0.0
...
Recently a few drivers have grown OpenGL 4+ support so we might as
well go all the way to... 11 ;-)
v2: Don't forget to update the version file (Ilia)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu >
2015-08-01 15:45:43 +01:00
Emil Velikov
1307be519b
winsys/radeon: don't leak the fd when it is 0
...
Earlier commit added an extra dup(fd) to fix a ZaphodHeads issue.
Although it did not consider the (very unlikely) case where we might end
up with the valid fd == 0.
Fixes: 28dda47ae4d(winsys/radeon: Use dup fd as key in drm-winsys hash
table to fix ZaphodHeads.)
Cc: 10.6 <mesa-stable@lists.freedesktop.org >
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Mario Kleiner <mario.kleiner.de@gmail.com >
2015-08-01 15:44:17 +01:00
Emil Velikov
eb3e2562a4
configure.ac: check for mkostemp()
...
We can make use of it over mkstemp + fcntl in the egl/wayland code.
Cc: Axel Davy <axel.davy@ens.fr >
Suggested-by: Matt Turner <mattst88@gmail.com >
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
2015-08-01 15:41:45 +01:00
Emil Velikov
175d975279
egl/wayland: use drmGetNodeTypeFromFd helper instead of opencoding it
...
Cc: Axel Davy <axel.davy@ens.fr >
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Acked-by: Boyan Ding <boyan.j.ding@gmail.com >
2015-08-01 15:41:45 +01:00
Emil Velikov
5567494403
egl/wayland: use designated initializers
...
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Reviewed-by: Thomas Helland <thomashelland90@gmail.com >
2015-08-01 15:41:23 +01:00
Emil Velikov
720125ff99
egl: remove ifdef $(egl_extension) compile guards
...
All of these are already defined in the headers provided.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
2015-08-01 15:41:23 +01:00
Emil Velikov
fa109d02dd
egl/wayland: libdrm is a hard requirement, treat it as such
...
Prompt at configure time if it's missing otherwise we'll fail later on
in the build. Remove ambiguous HAVE_LIBDRM guard.
Cc: 10.6 <mesa-stable@lists.freedesktop.org >
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
2015-08-01 15:41:23 +01:00
Emil Velikov
57c670a823
egl: consolidate ifdef HAVE_LIBDRM blocks
...
Move the code around rather than having it scattered. No functional
change.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Reviewed-by: Thomas Helland <thomashelland90@gmail.com >
2015-08-01 15:41:19 +01:00
Emil Velikov
b0a9299603
configure.ac: null,android,gdi are not valid egl-platforms
...
... and update the documentation to reflect reality.
null and gdi are gone, and surfaceless is a recent addition.
v2: s/platforms/platform/ (spotted by Thomas)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
Reviewed-by: Thomas Helland <thomashelland90@gmail.com >
2015-08-01 15:40:44 +01:00
Marek Olšák
5d29eaef85
Revert "gallium/radeon: re-enable unsafe math for graphics shaders"
...
This reverts commit 8559f6ce62 .
It causes hangs in DOTA 2 Reborn.
2015-08-01 00:52:05 +02:00
EdB
a40179f47b
clover: make dispatch matches functions def
...
Reviewed-by: Francisco Jerez <currojerez@riseup.net >
2015-07-31 14:48:30 -07:00
Vinson Lee
8477dd7c2e
gallivm: Fix GCC unused-variable warning.
...
lp_bld_tgsi_soa.c: In function 'lp_emit_immediate_soa':
lp_bld_tgsi_soa.c:3065:18: warning: unused variable 'size' [-Wunused-variable]
const uint size = imm->Immediate.NrTokens - 1;
^
Signed-off-by: Vinson Lee <vlee@freedesktop.org >
Reviewed-by: Brian Paul <brianp@vmware.com >
2015-07-31 14:43:11 -07:00
Adam Jackson
bafdafa7b2
glx: Fix missing bit decl for EXT_texture_integer
...
Missing from:
commit b15aba940a
Author: Adam Jackson <ajax@redhat.com >
Date: Tue Jul 21 11:43:42 2015 -0400
glx: Fix image size computation for EXT_texture_integer (v2)
Signed-off-by: Adam Jackson <ajax@redhat.com >
2015-07-31 13:37:19 -04:00
Matt Turner
616355160d
glsl: Initialize parse-state in constructor of lower_subroutine.
...
Static analysis tools don't like partial object initializations.
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com >
2015-07-31 10:33:03 -07:00
Adam Jackson
b15aba940a
glx: Fix image size computation for EXT_texture_integer (v2)
...
Without this this extension basically can't work in indirect contexts,
TexImage2D will compute the image size as 0 and we'll send no image data
to the server.
v2: Add EXT_texture_integer to the client extension list too (Ian)
Reviewed-by: Eric Anholt <eric@anholt.net >
Signed-off-by: Adam Jackson <ajax@redhat.com >
2015-07-31 12:32:16 -04:00
Marek Olšák
3050978864
radeonsi: copy *8_SNORM bits exactly in resource_copy_region
...
Disabling the FP16 mode didn't help.
If needed, we can use this trick for blits too, but not for scaled blits.
+ 4 piglits
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com >
2015-07-31 16:49:17 +02:00
Marek Olšák
64d3130994
r600g: early exit in r600_clear if there's nothing to do
...
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com >
2015-07-31 16:49:17 +02:00
Marek Olšák
f9c4953f99
radeonsi: early exit in si_clear if there's nothing to do
...
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com >
2015-07-31 16:49:17 +02:00
Marek Olšák
190a40580f
radeonsi: fix a regression since the resource_copy_region cleanup
...
Broken since:
46b2b3b - radeonsi: don't change pipe_resource in resource_copy_region
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91444
Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com >
2015-07-31 16:49:17 +02:00
Marek Olšák
3ca2132058
radeonsi: fix broken st/nine from merging tessellation
...
st/nine uses GENERIC slots greater than 60.
2015-07-31 16:49:17 +02:00
Marek Olšák
2d3ae154ba
radeonsi: move CP DMA functions to their own file
...
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com >
2015-07-31 16:49:17 +02:00
Marek Olšák
3063c5e3d3
radeonsi: add a debug flag that disables printing ISA in shader dumps
2015-07-31 16:49:17 +02:00
Marek Olšák
2dcbd427da
radeonsi: add a debug flag that disables printing TGSI in shader dumps
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
2015-07-31 16:49:17 +02:00
Marek Olšák
ac19a896d3
radeonsi: add a debug flag that disables printing the LLVM IR in shader dumps
...
This is for shader-db and should reduce size of shader dumps.
2015-07-31 16:49:17 +02:00
Marek Olšák
7dd1f45bc4
radeonsi: store shader disassemblies in memory for future users
...
This will be used by the new ddebug pipe. I'm including it now to avoid
conflicts with other patches.
2015-07-31 16:49:16 +02:00
Marek Olšák
1bbe408363
radeonsi: don't use llvm.AMDIL.fraction for FRC and DFRAC
...
There are 2 reasons for this:
- LLVM optimization passes can work with floor
- there are patterns to select v_fract from floor anyway
There is no change in the generated code.
2015-07-31 16:49:16 +02:00
Marek Olšák
8559f6ce62
gallium/radeon: re-enable unsafe math for graphics shaders
...
This reverts commit 4db985a5fa .
The grass no longer disappears, which was the reason the commit was reverted.
This might affect tessellation. We'll see.
Totals from affected shaders:
SGPRS: 151672 -> 150232 (-0.95 %)
VGPRS: 90620 -> 89776 (-0.93 %)
Code Size: 3980472 -> 3920836 (-1.50 %) bytes
LDS: 67 -> 67 (0.00 %) blocks
Scratch: 1357824 -> 1202176 (-11.46 %) bytes per wave
Reviewed-by: Tom Stellard <thomas.stellard@amd.com >
2015-07-31 16:49:16 +02:00
Marek Olšák
12a197b2d5
gallium/radeon: don't use rsq_action
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
2015-07-31 16:49:16 +02:00
Marek Olšák
681dbcf690
gallium/radeon: move r600-specific code to r600g
...
Reviewed-by: Tom Stellard <thomas.stellard@amd.com >
2015-07-31 16:49:16 +02:00
Marek Olšák
9a4c57afe4
gallium/radeon: remove unused variables and old comments
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
2015-07-31 16:49:16 +02:00
Marek Olšák
b9dad585e6
gallium/radeon: remove build_intrinsic and build_tgsi_intrinsic
...
duplicated now
Reviewed-by: Dave Airlie <airlied@redhat.com >
2015-07-31 16:49:16 +02:00
Marek Olšák
0c805b6240
gallivm: add LLVMAttribute parameter to lp_build_intrinsic
...
This will help remove some duplicated code from radeon.
Reviewed-by: Dave Airlie <airlied@redhat.com >
2015-07-31 16:49:16 +02:00