On 2016-02-13 18:14:17, Jason Ekstrand wrote:
> This patch series adds actual function support to NIR. Previously all NIR
> usage relied on GLSL to have lowered functions away entirely. As a result,
> any support for functions that was there was dead code and not really
> tested. With SPIR-V on
On Sat, Feb 13, 2016 at 8:43 PM, Jordan Justen
wrote:
> On 2016-02-13 18:14:20, Jason Ekstrand wrote:
> > ---
> > src/compiler/nir/nir.c | 32 ++--
> > src/compiler/nir/nir.h | 2 ++
> > 2 files changed, 24 insertions(+), 10 deletions(-)
> >
> > diff --git a/src/comp
Marta, perhaps you can have a look? It's pretty similar to your commit
b6d014f0b (mesa/es3.1: Pass sample count check for multisampled
textures).
On Thu, Feb 11, 2016 at 3:04 PM, Ilia Mirkin wrote:
> The restriction on multisampled integer texture formats only applies to
> GLES 3.0, so don't appl
On 2016-02-13 18:14:20, Jason Ekstrand wrote:
> ---
> src/compiler/nir/nir.c | 32 ++--
> src/compiler/nir/nir.h | 2 ++
> 2 files changed, 24 insertions(+), 10 deletions(-)
>
> diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c
> index acb2692..0e4d981 1006
Reviewed-by: Chris Forbes
On Fri, Feb 12, 2016 at 9:31 AM, Ilia Mirkin wrote:
> GL_ARB_texture_multisample and GLES 3.1 expect the initial value to be
> GL_TRUE. This fixes
>
>
> dEQP-GLES31.functional.state_query.texture_level.texture_2d_multisample_array.fixed_sample_locations_integer
>
> and
On Sat, 2016-02-13 at 16:47 +1100, Timothy Arceri wrote:
> Global in validation is already handled, this will do the validation
> for variables, blocks and block members.
>
> This fixes some CTS tests for the new enhanced layouts transform
> feedback qualifiers.
> ---
Please ignore this I shouldn
On 2016-02-13 18:14:18, Jason Ekstrand wrote:
> NIR has never been used on IR where we haven't already done function
> inlining so this code has been dead from the beginning. Let's just get rid
> of it for now. We can alwasy put it back in if we decide to use NIR for
typo: always
Reviewed-by: J
In a situation where the seamless setting isn't available on a
per-texture basis (G200+ Teslas, and all Fermis), assume that all
samplers will have it identically set, and enable accordingly.
This fixes arb_seamless_cubemap piglit test on Fermi and Tesla.
Signed-off-by: Ilia Mirkin
---
src/gall
Assuming the URB sizes mean the sensible thing (didn't we just clean that
up?):
Reviewed-by: Jason Ekstrand
I'm a little wary of the URB size since the bspec actually gives a range.
Might be better to drop it to 128 just to be safe. I guess if we find a
problem, we can always push a patch to st
Reviewed-by: Mark Janes
Ben Widawsky writes:
> v2: Forgot to squash in the comment removal
>
> Signed-off-by: Ben Widawsky
> ---
> src/mesa/drivers/dri/i965/brw_device_info.c | 19 +--
> 1 file changed, 9 insertions(+), 10 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i96
Reviewed-by: Jordan Justen
And for IVB:
Tested-by: Jordan Justen
For me, this fixed the error message from
arb_shader_image_load_store-max-images,
subtest "Compute shader max image uniforms test":
Before:
Failed to link: error: Too many compute shader image uniforms (35002 > 32)
After:
F
---
src/compiler/Makefile.sources | 1 +
src/compiler/nir/Makefile.sources | 1 +
src/compiler/nir/nir.h| 3 +
src/compiler/nir/nir_repair_ssa.c | 157 ++
4 files changed, 162 insertions(+)
create mode 100644 src/compiler/nir/nir_repair_ss
---
src/compiler/nir/nir_control_flow.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/src/compiler/nir/nir_control_flow.c
b/src/compiler/nir/nir_control_flow.c
index ecd9cbd..33b06d0 100644
--- a/src/compiler/nir/nir_control_flow.c
+++ b/src/compiler/nir/nir_control_flow.c
@@ -749,
---
src/compiler/nir/nir.h | 16
1 file changed, 16 insertions(+)
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index c856b83..e28070b 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -1871,6 +1871,22 @@ nir_after_cf_node(nir_cf_node *node)
}
This commit adds a new NIR pass that lowers all function calls away by
inlining the functions.
---
src/compiler/Makefile.sources | 1 +
src/compiler/nir/Makefile.sources | 1 +
src/compiler/nir/nir.h | 2 +
src/compiler/nir/nir_inline_functions.c | 270 ++
---
src/compiler/nir/nir_builder.h | 23 +++
1 file changed, 23 insertions(+)
diff --git a/src/compiler/nir/nir_builder.h b/src/compiler/nir/nir_builder.h
index d131259..18894da 100644
--- a/src/compiler/nir/nir_builder.h
+++ b/src/compiler/nir/nir_builder.h
@@ -349,6 +349,29
---
src/compiler/nir/nir_validate.c | 22 +++---
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/src/compiler/nir/nir_validate.c b/src/compiler/nir/nir_validate.c
index 24094f6..0c9d816 100644
--- a/src/compiler/nir/nir_validate.c
+++ b/src/compiler/nir/nir_validate.
The efficiency should be approximately the same. We do a little more work
per phi node because we have to sort the predecessors. However, we no
longer have to walk the blocks a second time to pop things off the stack.
The bigger advantage, however, is that we can now re-use the phi placement
and
This commit adds a NIR pass for lowering away returns in functions. If the
return is in a loop, it is lowered to a break. If it is not in a loop,
it's lowered away by moving/deleting code as needed.
---
src/compiler/Makefile.sources| 1 +
src/compiler/nir/Makefile.sources| 1 +
s
---
src/compiler/nir/nir.c | 63 ++
src/compiler/nir/nir.h | 2 ++
2 files changed, 65 insertions(+)
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c
index cd78475..468065a 100644
--- a/src/compiler/nir/nir.c
+++ b/src/compiler/nir/nir.
---
src/compiler/nir/nir_builder.h | 7 +++
1 file changed, 7 insertions(+)
diff --git a/src/compiler/nir/nir_builder.h b/src/compiler/nir/nir_builder.h
index d546e41..d131259 100644
--- a/src/compiler/nir/nir_builder.h
+++ b/src/compiler/nir/nir_builder.h
@@ -361,4 +361,11 @@ nir_load_system
Since we aren't going to put the function parameters or the return variable
in the list of locals, it won't get a proper declaration. This changes
nir_print to print the type along with each parameter or return variable.
---
src/compiler/nir/nir_print.c | 12 ++--
1 file changed, 10 inser
---
src/compiler/nir/nir.h | 1 +
src/compiler/nir/nir_clone.c | 112 ++-
2 files changed, 81 insertions(+), 32 deletions(-)
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index ff09075..ae57e5f 100644
--- a/src/compiler/nir/nir.h
+++
Otherwise, we have a problem when we go to print functions with arguments
because their names get added to the hash table during declaration which
happens after we print the prototype.
---
src/compiler/nir/nir_print.c | 66
1 file changed, 36 insertions
This patch series adds actual function support to NIR. Previously all NIR
usage relied on GLSL to have lowered functions away entirely. As a result,
any support for functions that was there was dead code and not really
tested. With SPIR-V on the horizon, NIR will need real function support.
The
---
src/compiler/nir/nir.c | 16
1 file changed, 16 insertions(+)
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c
index 0e4d981..cd78475 100644
--- a/src/compiler/nir/nir.c
+++ b/src/compiler/nir/nir.c
@@ -304,6 +304,22 @@ nir_function_impl_create(nir_function *funct
Right now, we have phi placement code in two places and there are other
places where it would be nice to be able to do this analysis. Instead of
repeating it all over the place, this commit adds a helper for placing all
of the needed phi nodes for a value.
---
src/compiler/Makefile.sources |
NIR has never been used on IR where we haven't already done function
inlining so this code has been dead from the beginning. Let's just get rid
of it for now. We can alwasy put it back in if we decide to use NIR for
function inlining at some point in the future.
---
src/compiler/nir/glsl_to_nir.
---
src/compiler/nir/nir.c | 32 ++--
src/compiler/nir/nir.h | 2 ++
2 files changed, 24 insertions(+), 10 deletions(-)
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c
index acb2692..0e4d981 100644
--- a/src/compiler/nir/nir.c
+++ b/src/compiler/nir/nir.c
---
src/compiler/nir/nir.c | 4
src/compiler/nir/nir.h | 9 -
src/compiler/nir/nir_validate.c | 2 +-
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c
index df40a55..acb2692 100644
--- a/src/compiler/nir/
This can happen if a function ends in a return instruction and you remove
the return.
---
src/compiler/nir/nir_control_flow.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/compiler/nir/nir_control_flow.c
b/src/compiler/nir/nir_control_flow.c
index 96395a4..ecd9cbd
Previously, nir_dominance.c didn't properly handle unreachable blocks.
This can happen if, for instance, you have something like this:
loop {
if (...) {
break;
} else {
break;
}
}
In this case, the block right after the if statement will be unreachable.
This commit makes two
---
src/util/bitset.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/bitset.h b/src/util/bitset.h
index c452819..2404ce7 100644
--- a/src/util/bitset.h
+++ b/src/util/bitset.h
@@ -98,7 +98,7 @@ __bitset_ffs(const BITSET_WORD *x, int n)
static inline unsigned
__bit
This new pass lowers load/store_var intrinsics that act on indirect derefs
to if-ladder of direct load/store_var intrinsics. The if-ladders perform a
simple binary search on the indirect.
---
src/compiler/Makefile.sources| 1 +
src/compiler/nir/Makefile.sources| 1
On 02/11/2016 12:58 PM, Miklós Máté wrote:
> On 02/09/2016 05:02 PM, Ian Romanick wrote:
>> On 02/08/2016 05:11 PM, Ian Romanick wrote:
>>> On 02/05/2016 01:11 PM, Miklós Máté wrote:
dri drawables must never be released when unbound from a context
as long as their corresponding glx object
On Sat, 2016-02-13 at 17:27 -0800, Kenneth Graunke wrote:
> The ImageAccess array is statically sized to MAX_IMAGE_UNIFORMS:
>
> GLenum ImageAccess[MAX_IMAGE_UNIFORMS];
>
> There was no bounds checking ensuring we don't overflow. Passing in
> a
> shader with too many uniforms would cause writ
On Saturday, February 13, 2016 8:30:51 PM PST Ilia Mirkin wrote:
> On Sat, Feb 13, 2016 at 8:27 PM, Kenneth Graunke
wrote:
> > The ImageAccess array is statically sized to MAX_IMAGE_UNIFORMS:
> >
> >GLenum ImageAccess[MAX_IMAGE_UNIFORMS];
> >
> > There was no bounds checking ensuring we don't
On Sat, Feb 13, 2016 at 8:27 PM, Kenneth Graunke wrote:
> The ImageAccess array is statically sized to MAX_IMAGE_UNIFORMS:
>
>GLenum ImageAccess[MAX_IMAGE_UNIFORMS];
>
> There was no bounds checking ensuring we don't overflow. Passing in a
> shader with too many uniforms would cause writes to
The ImageAccess array is statically sized to MAX_IMAGE_UNIFORMS:
GLenum ImageAccess[MAX_IMAGE_UNIFORMS];
There was no bounds checking ensuring we don't overflow. Passing in a
shader with too many uniforms would cause writes to extend into other
fields, such as sh->NumImages.
Later linker che
https://bugs.freedesktop.org/show_bug.cgi?id=77449
Bug 77449 depends on bug 87389, which changed state.
Bug 87389 Summary: [ILK] HL2 & CS:Source water shader broken
https://bugs.freedesktop.org/show_bug.cgi?id=87389
What|Removed |Added
--
Reviewed-by: Samuel Pitoiset
On 02/14/2016 01:25 AM, Ilia Mirkin wrote:
This can happen with 0-sized buffers.
Signed-off-by: Ilia Mirkin
---
src/mesa/state_tracker/st_atom_atomicbuf.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/mesa/state_tracker/st_atom
On Sat, Feb 13, 2016 at 3:30 PM, Francisco Jerez wrote:
> Matt Turner writes:
>
>> On Sat, Feb 13, 2016 at 2:02 PM, Francisco Jerez
>> wrote:
>>> Matt Turner writes:
>>>
On Thu, Feb 11, 2016 at 4:41 PM, Matt Turner wrote:
> Gen4/5's SEL instruction cannot use conditional modifiers, s
This can happen with 0-sized buffers.
Signed-off-by: Ilia Mirkin
---
src/mesa/state_tracker/st_atom_atomicbuf.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/mesa/state_tracker/st_atom_atomicbuf.c
b/src/mesa/state_tracker/st_atom_atomicbuf.c
index d83c396..a27d
Signed-off-by: Ilia Mirkin
Reviewed-by: Dave Airlie
---
src/mesa/main/mtypes.h | 1 +
src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 214 -
2 files changed, 211 insertions(+), 4 deletions(-)
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtyp
This enables ARB_shader_image_load_store and ARB_shader_image_size when
the backend claims support for these. It will also implicitly enable the
image component of ARB_shader_texture_image_samples.
Signed-off-by: Ilia Mirkin
Reviewed-by: Marek Olšák
Reviewed-by: Dave Airlie
---
src/mesa/state_
Signed-off-by: Ilia Mirkin
Reviewed-by: Marek Olšák
Reviewed-by: Dave Airlie
---
src/mesa/state_tracker/st_format.h | 8
1 file changed, 8 insertions(+)
diff --git a/src/mesa/state_tracker/st_format.h
b/src/mesa/state_tracker/st_format.h
index 90e00e8..3e10aa6 100644
--- a/src/mesa/s
OK... v2 is here, rebased across the recent compute support and Dave's
AoA changes (and probably other stuff). No significant changes to the
patches themselves.
Dave, your R-b was conditional on addressing your feedback re
writability of surfaces, but I believe you later decided it was OK
as-is, a
From: Nicolai Hähnle
Reviewed-by: Ilia Mirkin
---
src/mesa/state_tracker/st_atom_image.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/mesa/state_tracker/st_atom_image.c
b/src/mesa/state_tracker/st_atom_image.c
index 1025725..ff36537 100644
--- a/src/mesa/state_t
Make them akin to shader buffers, with no refcounting/etc. Just used to
pass data about the bound image in ->set_shader_images.
Signed-off-by: Ilia Mirkin
Reviewed-by: Dave Airlie
Reviewed-by: Marek Olšák
---
src/gallium/auxiliary/util/u_inlines.h| 11 ---
src/gallium/drivers/d
From: Nicolai Hähnle
Reviewed-by: Ilia Mirkin
---
src/mesa/state_tracker/st_atom_image.c | 24 +---
1 file changed, 17 insertions(+), 7 deletions(-)
diff --git a/src/mesa/state_tracker/st_atom_image.c
b/src/mesa/state_tracker/st_atom_image.c
index ff36537..4b48bc3 100644
-
Signed-off-by: Ilia Mirkin
Reviewed-by: Marek Olšák
Reviewed-by: Dave Airlie
---
src/gallium/auxiliary/gallivm/lp_bld_limits.h| 1 +
src/gallium/auxiliary/tgsi/tgsi_exec.h | 1 +
src/gallium/docs/source/screen.rst | 1 +
src/gallium/drivers/freedreno/freedreno_screen
Signed-off-by: Ilia Mirkin
Reviewed-by: Marek Olšák
Reviewed-by: Dave Airlie
---
src/mesa/Makefile.sources | 1 +
src/mesa/state_tracker/st_atom.c | 6 +
src/mesa/state_tracker/st_atom.h | 6 +
src/mesa/state_tracker/st_atom_image.c | 222 +
Signed-off-by: Ilia Mirkin
Reviewed-by: Marek Olšák
Reviewed-by: Dave Airlie
---
src/gallium/auxiliary/tgsi/tgsi_dump.c | 2 +-
src/gallium/auxiliary/tgsi/tgsi_text.c | 13 ++---
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/src/gallium/auxiliary/tgsi/tgsi_dump.c
b/s
Reviewed-by: Ilia Mirkin
On Sat, Feb 13, 2016 at 6:31 PM, Samuel Pitoiset
wrote:
> Without this NVF0_COMPUTE environment variable, compute support is
> initialized by default and this is not what we want for now because
> it might break 3D. Compute will be enabled by default on GK110+ once
> we
Serge Martin writes:
> ---
> src/gallium/state_trackers/clover/core/kernel.cpp | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp
> b/src/gallium/state_trackers/clover/core/kernel.cpp
> index 41b3852..8396be9 100644
>
Reviewed-by: Ilia Mirkin
On Sat, Feb 13, 2016 at 6:31 PM, Samuel Pitoiset
wrote:
> Fortunately, compute support on GM107 is very close to GK110, except
> the GK110_COMPUTE.UNK02C4 which is invalid and should not be used.
>
> Signed-off-by: Samuel Pitoiset
> ---
> src/gallium/drivers/nouveau/nv
On Sat, Feb 13, 2016 at 6:31 PM, Samuel Pitoiset
wrote:
> For some unknown reasons, the command 0x518, which is FIRMWARE[0x6]
Please make a note that the blob calls it, along with the args passed
in (usually via scratch regs iirc). It's probably one of the context
register modifiers. Our firmware
For some unknown reasons, the command 0x518, which is FIRMWARE[0x6]
from rnndb, totally hangs the GPU, and a reboot is needed. With
that removed, I can succesfully launch compute shaders and so the
compute support seems to work as expected.
Tested on GK208 and GM107.
Signed-off-by: Samuel Pitoise
Fortunately, compute support on GM107 is very close to GK110, except
the GK110_COMPUTE.UNK02C4 which is invalid and should not be used.
Signed-off-by: Samuel Pitoiset
---
src/gallium/drivers/nouveau/nv_object.xml.h | 1 +
src/gallium/drivers/nouveau/nvc0/nve4_compute.c | 5 -
2 files cha
Without this NVF0_COMPUTE environment variable, compute support is
initialized by default and this is not what we want for now because
it might break 3D. Compute will be enabled by default on GK110+ once
we are sure that it won't break anything else.
Signed-off-by: Samuel Pitoiset
---
src/galliu
Matt Turner writes:
> On Sat, Feb 13, 2016 at 2:02 PM, Francisco Jerez
> wrote:
>> Matt Turner writes:
>>
>>> On Thu, Feb 11, 2016 at 4:41 PM, Matt Turner wrote:
Gen4/5's SEL instruction cannot use conditional modifiers, so min/max
are implemented as CMP + SEL. Handling that after o
Thanks kindly.
Reviewed-by: Edward O'Callaghan
On 2016-02-14 09:39, Serge Martin wrote:
---
src/gallium/state_trackers/clover/core/kernel.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp
b/src/gallium/state_tracker
Assuming this compiles, this is
Reviewed-by: Ilia Mirkin
On Sat, Feb 13, 2016 at 5:39 PM, Serge Martin wrote:
> ---
> src/gallium/state_trackers/clover/core/kernel.cpp | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/gallium/state_trackers/clover/core/kernel.c
On Sat, Feb 13, 2016 at 2:02 PM, Francisco Jerez wrote:
> Matt Turner writes:
>
>> On Thu, Feb 11, 2016 at 4:41 PM, Matt Turner wrote:
>>> Gen4/5's SEL instruction cannot use conditional modifiers, so min/max
>>> are implemented as CMP + SEL. Handling that after optimization lets us
>>> CSE more
We already have one in the IR code that can be used everywhere its
needed in the AST code so remove the one from the AST.
---
src/compiler/glsl/ast.h | 12
src/compiler/glsl/ast_to_hir.cpp | 7 ++-
src/compiler/glsl/ast_type.cpp | 13 -
3 files changed, 2 i
https://bugs.freedesktop.org/show_bug.cgi?id=94088
Vinson Lee changed:
What|Removed |Added
Resolution|--- |FIXED
Status|NEW
---
src/gallium/state_trackers/clover/core/kernel.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp
b/src/gallium/state_trackers/clover/core/kernel.cpp
index 41b3852..8396be9 100644
--- a/src/gallium/state_trackers/clov
On Sat, 2016-02-13 at 13:55 -0800, Kenneth Graunke wrote:
> Commit be27f772e8b97031bf5177 added ctx-
> >Const.MaxComputeSharedMemorySize,
> and added a line to initialize it to a default value of 32768 in the
> standalone GLSL compiler, but didn't initialize a default value in
> real
> GL contexts.
On 02/13/2016 11:18 PM, Jordan Justen wrote:
On 2016-02-13 13:57:17, Samuel Pitoiset wrote:
On 02/13/2016 10:55 PM, Jordan Justen wrote:
On 2016-02-13 13:49:37, Samuel Pitoiset wrote:
MAX_COMPUTE_SHARED_SIZE should be set to 32768. This fixes a regression
introduced in be27f77 (mesa: do not
Ilia Mirkin writes:
> On Sat, Feb 13, 2016 at 4:45 PM, Francisco Jerez
> wrote:
>> Ilia Mirkin writes:
>>
>>> On Sat, Feb 13, 2016 at 12:01 PM, Serge Martin wrote:
---
src/gallium/state_trackers/clover/core/kernel.cpp | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-
On 2016-02-13 13:57:17, Samuel Pitoiset wrote:
>
> On 02/13/2016 10:55 PM, Jordan Justen wrote:
> > On 2016-02-13 13:49:37, Samuel Pitoiset wrote:
> >> MAX_COMPUTE_SHARED_SIZE should be set to 32768. This fixes a regression
> >> introduced in be27f77 (mesa: do not use a constant for
> >> MAX_COMPU
On Sat, Feb 13, 2016 at 4:45 PM, Francisco Jerez wrote:
> Ilia Mirkin writes:
>
>> On Sat, Feb 13, 2016 at 12:01 PM, Serge Martin wrote:
>>> ---
>>> src/gallium/state_trackers/clover/core/kernel.cpp | 7 ---
>>> 1 file changed, 4 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/src/galliu
On 12/02/16 15:45, Brian Paul wrote:
Rename to 'tex_attr' to be a bit more clear.
---
src/mesa/state_tracker/st_cb_drawtex.c | 20 ++--
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/mesa/state_tracker/st_cb_drawtex.c
b/src/mesa/state_tracker/st_cb_drawtex
On 12/02/16 15:44, Brian Paul wrote:
cso_save_state() takes a bitmask of state items to save. Calling
cso_restore_state() restores those states.
---
src/gallium/auxiliary/cso_cache/cso_context.c | 109 ++
src/gallium/auxiliary/cso_cache/cso_context.h | 24 ++
2 f
Return an API object from an intrusive reference to a Clover object,
incrementing the reference count of the object.
Reviewed-by: Francisco Jerez
---
src/gallium/state_trackers/clover/api/util.hpp | 12
1 file changed, 12 insertions(+)
diff --git a/src/gallium/state_trackers/clover
---
.../state_trackers/clover/llvm/invocation.cpp | 87 --
.../state_trackers/clover/llvm/ir_compiler.cpp | 46 +---
.../state_trackers/clover/llvm/ir_compiler.hpp | 4 +-
3 files changed, 85 insertions(+), 52 deletions(-)
diff --git a/src/gallium/state_t
This serie add clLinkProgram function needed for CL 1.2.
However, it lacks the binary type part that is mandatory for input validation
and also for CL_PROGRAM_BINARY_TYPE query. This will be adressed
in another serie once we agree on the way to store it.
Serge Martin (7):
clover: add a LLVM comp
---
src/gallium/state_trackers/clover/api/program.cpp | 19 --
.../state_trackers/clover/core/compiler.hpp| 7 +-
src/gallium/state_trackers/clover/core/error.hpp | 7 ++
src/gallium/state_trackers/clover/core/program.cpp | 38 ++-
src/gallium/state_trackers/clover/core/pr
---
src/gallium/state_trackers/clover/Makefile.sources | 3 +-
.../state_trackers/clover/llvm/ir_compiler.cpp | 282 +
.../state_trackers/clover/llvm/ir_compiler.hpp | 59 +
3 files changed, 343 insertions(+), 1 deletion(-)
create mode 100644 src/gallium/state_t
---
.../state_trackers/clover/llvm/invocation.cpp | 234 ++---
1 file changed, 23 insertions(+), 211 deletions(-)
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp
b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index 4d11c24..d3347de 100644
--- a/sr
---
src/gallium/state_trackers/clover/core/program.cpp | 4 ++--
src/gallium/state_trackers/clover/core/program.hpp | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/gallium/state_trackers/clover/core/program.cpp
b/src/gallium/state_trackers/clover/core/program.cpp
index
Reviewed-by: Francisco Jerez
---
src/gallium/state_trackers/clover/api/program.cpp | 31 +++---
src/gallium/state_trackers/clover/core/program.hpp | 4 +--
2 files changed, 29 insertions(+), 6 deletions(-)
diff --git a/src/gallium/state_trackers/clover/api/program.cpp
b/src/ga
Matt Turner writes:
> ---
> src/mesa/drivers/dri/i965/brw_vec4_builder.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_vec4_builder.h
> b/src/mesa/drivers/dri/i965/brw_vec4_builder.h
> index be1427c..5d4b452 100644
> --- a/src/mesa/driv
Matt Turner writes:
> On Thu, Feb 11, 2016 at 4:41 PM, Matt Turner wrote:
>> Gen4/5's SEL instruction cannot use conditional modifiers, so min/max
>> are implemented as CMP + SEL. Handling that after optimization lets us
>> CSE more.
>>
>> On Ironlake:
>>
>>total instructions in shared progr
On 12/02/16 15:44, Brian Paul wrote:
---
src/mesa/state_tracker/st_cb_bitmap.c | 36
src/mesa/state_tracker/st_cb_clear.c | 46 +++
src/mesa/state_tracker/st_cb_drawpixels.c | 46 +++
src/mesa/state_tra
On 02/13/2016 10:57 PM, Kenneth Graunke wrote:
On Saturday, February 13, 2016 10:49:37 PM PST Samuel Pitoiset wrote:
MAX_COMPUTE_SHARED_SIZE should be set to 32768. This fixes a regression
introduced in be27f77 (mesa: do not use a constant for
MAX_COMPUTE_SHARED_SIZE).
Signed-off-by: Samuel P
On 02/13/2016 10:55 PM, Jordan Justen wrote:
On 2016-02-13 13:49:37, Samuel Pitoiset wrote:
MAX_COMPUTE_SHARED_SIZE should be set to 32768. This fixes a regression
introduced in be27f77 (mesa: do not use a constant for
MAX_COMPUTE_SHARED_SIZE).
Signed-off-by: Samuel Pitoiset
Cc: Mark Janes
On Saturday, February 13, 2016 10:49:37 PM PST Samuel Pitoiset wrote:
> MAX_COMPUTE_SHARED_SIZE should be set to 32768. This fixes a regression
> introduced in be27f77 (mesa: do not use a constant for
> MAX_COMPUTE_SHARED_SIZE).
>
> Signed-off-by: Samuel Pitoiset
> Cc: Mark Janes
> ---
>
> This
On Sat, Feb 13, 2016 at 4:49 PM, Samuel Pitoiset
wrote:
> MAX_COMPUTE_SHARED_SIZE should be set to 32768. This fixes a regression
> introduced in be27f77 (mesa: do not use a constant for
> MAX_COMPUTE_SHARED_SIZE).
>
> Signed-off-by: Samuel Pitoiset
> Cc: Mark Janes
Reviewed-by: Ilia Mirkin
P
Commit be27f772e8b97031bf5177 added ctx->Const.MaxComputeSharedMemorySize,
and added a line to initialize it to a default value of 32768 in the
standalone GLSL compiler, but didn't initialize a default value in real
GL contexts.
This regressed arb_compute_shader-minmax on i965, as the value of the
On 2016-02-13 13:49:37, Samuel Pitoiset wrote:
> MAX_COMPUTE_SHARED_SIZE should be set to 32768. This fixes a regression
> introduced in be27f77 (mesa: do not use a constant for
> MAX_COMPUTE_SHARED_SIZE).
>
> Signed-off-by: Samuel Pitoiset
> Cc: Mark Janes
> ---
>
> This patch is untested beca
MAX_COMPUTE_SHARED_SIZE should be set to 32768. This fixes a regression
introduced in be27f77 (mesa: do not use a constant for
MAX_COMPUTE_SHARED_SIZE).
Signed-off-by: Samuel Pitoiset
Cc: Mark Janes
---
This patch is untested because I don't have any Intel GPUs.
src/mesa/drivers/dri/i965/brw_
On 12/02/16 15:43, Brian Paul wrote:
---
src/mesa/state_tracker/st_cb_bitmap.c | 16 +++-
src/mesa/state_tracker/st_cb_clear.c | 13 ++---
src/mesa/state_tracker/st_cb_drawpixels.c | 14 ++
3 files changed, 7 insertions(+), 36 deletions(-)
diff --git
Ilia Mirkin writes:
> On Sat, Feb 13, 2016 at 12:01 PM, Serge Martin wrote:
>> ---
>> src/gallium/state_trackers/clover/core/kernel.cpp | 7 ---
>> 1 file changed, 4 insertions(+), 3 deletions(-)
>>
>> diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp
>> b/src/gallium/state_tr
Per
http://help.appveyor.com/discussions/problems/3801-builds-failing-without-generating-any-log
this was a transitory issue. And in fact I never saw it again.
Builds have been going reliably, so I've just re-enabled notification
emails to this list.
Is there any admin here that could help
On Thu, Feb 11, 2016 at 4:41 PM, Matt Turner wrote:
> Gen4/5's SEL instruction cannot use conditional modifiers, so min/max
> are implemented as CMP + SEL. Handling that after optimization lets us
> CSE more.
>
> On Ironlake:
>
>total instructions in shared programs: 6426035 -> 6422753 (-0.05%
Signed-off-by: Rhys Kidd
---
docs/envvars.html | 19 +++
1 file changed, 19 insertions(+)
diff --git a/docs/envvars.html b/docs/envvars.html
index ba83335..c0007a6 100644
--- a/docs/envvars.html
+++ b/docs/envvars.html
@@ -245,6 +245,25 @@ for details.
+VC4 driver environme
On Sat, Feb 13, 2016 at 12:45 PM, Kenneth Graunke wrote:
> brw_draw_upload.c uploads VertexID/InstanceID first, then DrawID.
> So we need to assign the attribute mapping in that order as well.
>
> Fixes the following Pigit tests with the vec4 backend:
> - arb_shader_draw_parameters-drawid vertexid
brw_draw_upload.c uploads VertexID/InstanceID first, then DrawID.
So we need to assign the attribute mapping in that order as well.
Fixes the following Pigit tests with the vec4 backend:
- arb_shader_draw_parameters-drawid vertexid
- arb_shader_draw_parameters-drawid-indirect basevertex
Signed-of
Signed-off-by: Rhys Kidd
---
docs/envvars.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/envvars.html b/docs/envvars.html
index ba83335..d7697e3 100644
--- a/docs/envvars.html
+++ b/docs/envvars.html
@@ -224,7 +224,7 @@ See src/mesa/state_tracker/st_debug.c for othe
1 - 100 of 129 matches
Mail list logo