Re: [Mesa-dev] [PATCH] egl/wayland: Set __DRI_IMAGE_USE_SCANOUT for shared buffers

2016-01-31 Thread Michel Dänzer
On 29.01.2016 21:36, Daniel Stone wrote: > On 29 January 2016 at 03:44, Michel Dänzer wrote: >> It still sounds like significant work (particularly for somebody like me >> who isn't very familiar with Wayland details yet). It should be done by >> somebody who cares about the difference you're desc

Re: [Mesa-dev] [PATCH 1/2] configure.ac: don't require EGL/DRM ang GBM if OpenGL is disabled

2016-01-31 Thread Michel Dänzer
On 31.01.2016 19:30, Emil Velikov wrote: > On 25 January 2016 at 11:24, Michel Dänzer wrote: >> On 23.01.2016 02:14, Marek Olšák wrote: >>> On Fri, Jan 22, 2016 at 6:02 PM, Emil Velikov >>> wrote: On 22 January 2016 at 16:50, Marek Olšák wrote: > On Fri, Jan 22, 2016 at 5:32 PM, Emil V

Re: [Mesa-dev] [PATCH 1/7] gallium/radeon: rename & reorder members of radeon_info

2016-01-31 Thread Michel Dänzer
On 30.01.2016 06:18, Marek Olšák wrote: > From: Marek Olšák Patches 1, 2 & 4 are Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___

Re: [Mesa-dev] [PATCH 7/7] gallium/radeon: remove radeon_info::r600_tiling_config

2016-01-31 Thread Michel Dänzer
On 30.01.2016 06:18, Marek Olšák wrote: > From: Marek Olšák > > --- > src/gallium/drivers/radeon/r600_pipe_common.c | 3 ++- > src/gallium/drivers/radeon/radeon_winsys.h| 1 - > src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c | 15 --- > src/gallium/winsys/radeon/drm/

Re: [Mesa-dev] [PATCH 3/7] winsys/amdgpu: add an assertion to cik_get_num_tile_pipes

2016-01-31 Thread Michel Dänzer
On 30.01.2016 06:18, Marek Olšák wrote: > From: Marek Olšák > > --- > src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c > b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c > inde

Re: [Mesa-dev] [PATCH 3/3] llvmpipe: drop scissor planes early if the tri is fully inside them

2016-01-31 Thread Roland Scheidegger
Am 01.02.2016 um 02:00 schrieb srol...@vmware.com: > From: Roland Scheidegger > > If the tri is fully inside a scissor edge (or rather, we just use the > bounding box of the tri for the comparison), then we can drop these > additional scissor "planes" early. We do not even need to allocate > spac

Re: [Mesa-dev] [PATCH] st/mesa: treat a write as a read for range purposes

2016-01-31 Thread Ilia Mirkin
On Sun, Jan 31, 2016 at 7:29 PM, Dave Airlie wrote: > On 30 January 2016 at 07:00, Ilia Mirkin wrote: >> We use this logic to detect live ranges and then do plain renaming >> across the whole codebase. As such, to prevent WaW hazards, we have to >> treat a write as if it were also a read. >> >> F

[Mesa-dev] [PATCH 3/3] llvmpipe: drop scissor planes early if the tri is fully inside them

2016-01-31 Thread sroland
From: Roland Scheidegger If the tri is fully inside a scissor edge (or rather, we just use the bounding box of the tri for the comparison), then we can drop these additional scissor "planes" early. We do not even need to allocate space for them in the tri. The math actually appears to be slightly

[Mesa-dev] [PATCH 2/3] llvmpipe: minor cleanup of sse2 for calc_fixed_position

2016-01-31 Thread sroland
From: Roland Scheidegger Just slightly simpler assembly. --- src/gallium/drivers/llvmpipe/lp_setup_tri.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c index 907129d..1e3a7

[Mesa-dev] [PATCH 1/3] llvmpipe: use vector loads for (optimized) tri raster funcs

2016-01-31 Thread sroland
From: Roland Scheidegger When we switched to 64bit rasterization, we could no longer use straight aligned loads for loading the plane data. However, what the code actually does for loading 3 planes, is 12 scalar loads + 9 unpacks, and then there's another 8 unpacks for the transpose we need (!).

Re: [Mesa-dev] [PATCH] st/mesa: treat a write as a read for range purposes

2016-01-31 Thread Dave Airlie
On 30 January 2016 at 07:00, Ilia Mirkin wrote: > We use this logic to detect live ranges and then do plain renaming > across the whole codebase. As such, to prevent WaW hazards, we have to > treat a write as if it were also a read. > > For example, the following sequence was observed before this

Re: [Mesa-dev] [PATCH 2/4] st/mesa: unify get_variant functions for TCS, TES, GS

2016-01-31 Thread Michael Schellenberger Costa
Hi Am 30/01/2016 um 16:50 schrieb Marek Olšák: > From: Marek Olšák > > --- > src/mesa/state_tracker/st_atom_shader.c | 18 +--- > src/mesa/state_tracker/st_program.c | 164 > +--- > src/mesa/state_tracker/st_program.h | 17 +--- > 3 files changed, 28 inser

Re: [Mesa-dev] [PATCH 2/5] egl: Add EGL_RECORDABLE_ANDROID attribute

2016-01-31 Thread Ilia Mirkin
On Sun, Jan 31, 2016 at 5:24 PM, Rob Herring wrote: > On Fri, Jan 29, 2016 at 4:37 PM, Ilia Mirkin wrote: >> On Fri, Jan 29, 2016 at 5:18 PM, Rob Herring wrote: >>> On Fri, Jan 29, 2016 at 3:46 PM, Ilia Mirkin wrote: On Fri, Jan 29, 2016 at 4:41 PM, Rob Herring wrote: > On Fri, Jan 29

Re: [Mesa-dev] [PATCH 2/5] egl: Add EGL_RECORDABLE_ANDROID attribute

2016-01-31 Thread Rob Herring
On Fri, Jan 29, 2016 at 4:37 PM, Ilia Mirkin wrote: > On Fri, Jan 29, 2016 at 5:18 PM, Rob Herring wrote: >> On Fri, Jan 29, 2016 at 3:46 PM, Ilia Mirkin wrote: >>> On Fri, Jan 29, 2016 at 4:41 PM, Rob Herring wrote: On Fri, Jan 29, 2016 at 3:05 PM, Ilia Mirkin wrote: > Both for this

Re: [Mesa-dev] [PATCH 5/6] Android: disable unused-parameter warning

2016-01-31 Thread Rob Herring
On Sun, Jan 31, 2016 at 4:23 AM, Emil Velikov wrote: > On 29 January 2016 at 20:52, Rob Herring wrote: >> Android builds with -Wunused-parameter enabled which results in spewing >> lots of warnings. Disable it so more meaningful warnings are more visible. >> > Would be great if one day we resolve

Re: [Mesa-dev] [PATCH v2] glx: update to updated version of EXT_create_context_es2_profile

2016-01-31 Thread Ilia Mirkin
ping? I haven't heard anything other than a suggestion that GLES2 and GLES3 should be merged (which is something that ought to be done separately from this change)... On Fri, Jan 22, 2016 at 1:46 PM, Ilia Mirkin wrote: > On Thu, Jan 21, 2016 at 11:58 AM, Ilia Mirkin wrote: >> The EXT spec has be

Re: [Mesa-dev] [PATCH 4/6] Android: enable building on arm64

2016-01-31 Thread Rob Herring
On Sun, Jan 31, 2016 at 4:17 AM, Emil Velikov wrote: > On 29 January 2016 at 20:52, Rob Herring wrote: >> Define the DEFAULT_DRIVER_DIR for arm64 builds. >> >> Cc: Emil Velikov > Reviewed-by: Emil Velikov > >> Cc: Chih-Wei Huang >> Signed-off-by: Rob Herring >> --- >> src/egl/Android.mk | 1

Re: [Mesa-dev] [PATCH v2 09/11] st/mesa: use the occlusion predicate query for GL_ANY_SAMPLES

2016-01-31 Thread Ilia Mirkin
On Sun, Jan 31, 2016 at 3:32 PM, Ilia Mirkin wrote: > This is supposed to return GL_TRUE or GL_FALSE, not the full counter > value. > > Signed-off-by: Ilia Mirkin > --- Errr... hm. Just realized many drivers will fail at this. Oh well, I'll drop it for now. > src/mesa/state_tracker/st_cb_query

Re: [Mesa-dev] [PATCH 6/7] st/mesa: convert GLSL image intrinsics into TGSI

2016-01-31 Thread Ilia Mirkin
On Sun, Jan 31, 2016 at 3:36 PM, Dave Airlie wrote: > On 1 February 2016 at 06:34, Ilia Mirkin wrote: >> On Sun, Jan 31, 2016 at 3:26 PM, Dave Airlie wrote: >>> On 31 January 2016 at 23:39, Ilia Mirkin wrote: On Sun, Jan 31, 2016 at 2:37 AM, Dave Airlie wrote: >> + for (i = 0; i < p

Re: [Mesa-dev] [PATCH 6/7] st/mesa: convert GLSL image intrinsics into TGSI

2016-01-31 Thread Dave Airlie
On 1 February 2016 at 06:34, Ilia Mirkin wrote: > On Sun, Jan 31, 2016 at 3:26 PM, Dave Airlie wrote: >> On 31 January 2016 at 23:39, Ilia Mirkin wrote: >>> On Sun, Jan 31, 2016 at 2:37 AM, Dave Airlie wrote: > + for (i = 0; i < program->shader->NumImages; i++) { > + if (program-

Re: [Mesa-dev] [PATCH 6/7] st/mesa: convert GLSL image intrinsics into TGSI

2016-01-31 Thread Ilia Mirkin
On Sun, Jan 31, 2016 at 3:26 PM, Dave Airlie wrote: > On 31 January 2016 at 23:39, Ilia Mirkin wrote: >> On Sun, Jan 31, 2016 at 2:37 AM, Dave Airlie wrote: + for (i = 0; i < program->shader->NumImages; i++) { + if (program->images_used & (1 << i)) { + t->images[i]

[Mesa-dev] [PATCH v2 03/11] mesa: Add QueryBuffer to context

2016-01-31 Thread Ilia Mirkin
From: Rafal Mielniczuk Add QueryBuffer and initialise it to NullBufferObj on start Signed-off-by: Rafal Mielniczuk [imirkin: also release QueryBuffer on free] Signed-off-by: Ilia Mirkin --- src/mesa/main/bufferobj.c | 14 ++ src/mesa/main/mtypes.h| 2 ++ 2 files changed, 16 i

[Mesa-dev] [PATCH v2 09/11] st/mesa: use the occlusion predicate query for GL_ANY_SAMPLES

2016-01-31 Thread Ilia Mirkin
This is supposed to return GL_TRUE or GL_FALSE, not the full counter value. Signed-off-by: Ilia Mirkin --- src/mesa/state_tracker/st_cb_queryobj.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_cb_queryobj.c b/src/mesa/state_tracker/st_cb_queryob

[Mesa-dev] [PATCH v2 11/11] nvc0: add support for ARB_query_buffer_object

2016-01-31 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- docs/GL3.txt | 2 +- docs/relnotes/11.2.0.html | 1 + src/gallium/drivers/nouveau/nvc0/mme/com9097.mme | 50 ++ src/gallium/drivers/nouveau/nvc0/mme/com9097.mme.h | 34 +++ src/galliu

[Mesa-dev] [PATCH v2 10/11] st/mesa: add query buffer support

2016-01-31 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- src/mesa/state_tracker/st_cb_bufferobjects.c | 3 + src/mesa/state_tracker/st_cb_queryobj.c | 97 ++- src/mesa/state_tracker/st_cb_texturebarrier.c | 3 + src/mesa/state_tracker/st_extensions.c| 1 + 4 files changed, 103 ins

[Mesa-dev] [PATCH v2 07/11] gallium: add a way to store query result into buffer

2016-01-31 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- src/gallium/docs/source/context.rst | 5 + src/gallium/include/pipe/p_context.h | 22 ++ src/gallium/include/pipe/p_defines.h | 10 ++ 3 files changed, 37 insertions(+) diff --git a/src/gallium/docs/source/context.rst b/src/galliu

[Mesa-dev] [PATCH v2 01/11] glapi: Add xml infrastructure for ARB_query_buffer_object

2016-01-31 Thread Ilia Mirkin
From: Rafal Mielniczuk Signed-off-by: Rafal Mielniczuk [imirkin: move definition to gl_API.xml as it is very short] Signed-off-by: Ilia Mirkin --- src/mapi/glapi/gen/gl_API.xml | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/

[Mesa-dev] [PATCH v2 06/11] mesa: add core implementation of ARB_query_buffer_object

2016-01-31 Thread Ilia Mirkin
Forwards query result writes to drivers. Signed-off-by: Ilia Mirkin --- src/mesa/main/queryobj.c | 280 ++- 1 file changed, 133 insertions(+), 147 deletions(-) diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c index 9836685..92d8f9a 100

[Mesa-dev] [PATCH v2 08/11] gallium: add PIPE_CAP_QUERY_BUFFER_OBJECT

2016-01-31 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- src/gallium/docs/source/screen.rst | 2 ++ src/gallium/drivers/freedreno/freedreno_screen.c | 1 + src/gallium/drivers/ilo/ilo_screen.c | 1 + src/gallium/drivers/llvmpipe/lp_screen.c | 1 + src/gallium/drivers/nouveau/nv30/nv30_scr

[Mesa-dev] [PATCH v2 02/11] mesa: Add ARB_query_buffer_object extension flag

2016-01-31 Thread Ilia Mirkin
From: Rafal Mielniczuk Signed-off-by: Rafal Mielniczuk [imirkin: add string to extensions.c] Signed-off-by: Ilia Mirkin --- src/mesa/main/extensions_table.h | 1 + src/mesa/main/mtypes.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/mesa/main/extensions_table.h b/src/mesa

[Mesa-dev] [PATCH v2 05/11] mesa: add driver interface for writing query results to buffers

2016-01-31 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- src/mesa/main/dd.h | 9 + 1 file changed, 9 insertions(+) diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index d4378e5..cfe0a82 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -726,6 +726,15 @@ struct dd_function_table { void (*EndQuer

[Mesa-dev] [PATCH v2 04/11] mesa: Handle QUERY_BUFFER_BINDING in GetIntegerv

2016-01-31 Thread Ilia Mirkin
From: Rafal Mielniczuk Signed-off-by: Rafal Mielniczuk [imirkin: move to GL/GL_CORE section] Signed-off-by: Ilia Mirkin --- src/mesa/main/get.c | 5 + src/mesa/main/get_hash_params.py | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/mesa/main/get.c b/src/mesa/main/g

[Mesa-dev] [PATCH v2 00/11] Add core and gallium ARB_query_buffer_object support

2016-01-31 Thread Ilia Mirkin
I believe I've addressed all the feedback from last time (except Marek's suggestion to use clear_buffer instead of an inline write for QUERY_TARGET support as I don't think that's an improvement), as well as adding an nvc0 implementation. It passes the test that Glenn wrote a while back: http://pa

Re: [Mesa-dev] [PATCH 6/7] st/mesa: convert GLSL image intrinsics into TGSI

2016-01-31 Thread Dave Airlie
On 31 January 2016 at 23:39, Ilia Mirkin wrote: > On Sun, Jan 31, 2016 at 2:37 AM, Dave Airlie wrote: >>> + for (i = 0; i < program->shader->NumImages; i++) { >>> + if (program->images_used & (1 << i)) { >>> + t->images[i] = ureg_DECL_image(ureg, i, >>> +

[Mesa-dev] [RFCv3 05/11] nir: add lowering pass for y-transform

2016-01-31 Thread Rob Clark
From: Rob Clark Signed-off-by: Rob Clark --- src/compiler/Makefile.sources| 1 + src/compiler/nir/nir.h | 12 + src/compiler/nir/nir_lower_wpos_ytransform.c | 317 +++ 3 files changed, 330 insertions(+) create mode 100644 src/com

[Mesa-dev] [RFCv3 06/11] nir: add lowering pass for glDrawPixels

2016-01-31 Thread Rob Clark
From: Rob Clark Signed-off-by: Rob Clark --- src/compiler/Makefile.sources | 1 + src/compiler/nir/nir.h | 13 ++ src/compiler/nir/nir_builder.h | 2 +- src/compiler/nir/nir_lower_drawpixels.c | 252 4 files changed, 267

[Mesa-dev] [RFCv3 08/11] gallium/auxiliary: introduce nir_emulate

2016-01-31 Thread Rob Clark
From: Rob Clark NIR equivalent of tgsi_emulate Signed-off-by: Rob Clark --- src/gallium/auxiliary/Makefile.sources | 2 + src/gallium/auxiliary/nir/nir_emulate.c | 177 src/gallium/auxiliary/nir/nir_emulate.h | 34 ++ 3 files changed, 213 insertions(+)

[Mesa-dev] [RFCv3 11/11] mesa/st: add support for NIR as possible driver IR

2016-01-31 Thread Rob Clark
From: Rob Clark Signed-off-by: Rob Clark --- src/compiler/nir/nir.h | 2 + src/mesa/Makefile.sources | 1 + src/mesa/state_tracker/st_glsl_to_nir.cpp | 407 + src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 40 ++- src/mesa/sta

[Mesa-dev] [RFCv3 09/11] glsl: export accessor for builtin-uniform descriptors

2016-01-31 Thread Rob Clark
From: Rob Clark We'll need this for a nir pass to lower builtin-uniform access. Signed-off-by: Rob Clark --- src/compiler/glsl/builtin_variables.cpp | 24 +++- src/compiler/glsl/ir.h | 3 +++ 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/

[Mesa-dev] [RFCv3 10/11] mesa/st: add nir pass for lowering builtin uniforms

2016-01-31 Thread Rob Clark
From: Rob Clark Signed-off-by: Rob Clark --- src/mesa/Makefile.sources | 2 + src/mesa/state_tracker/st_nir.h | 28 src/mesa/state_tracker/st_nir_lower_builtin.c | 207 ++ 3 files changed, 237 insertions(+) create mode 100644 sr

[Mesa-dev] [RFCv3 01/11] gallium: refactor pipe_shader_state to support multiple IR's

2016-01-31 Thread Rob Clark
The goal is to allow the pipe driver to request something other than TGSI, but detect whether what is getting is TGSI vs what it requested. The pipe drivers will always have to support TGSI (and convert that into whatever it is that they prefer), but in some cases we should be able to skip the TGSI

[Mesa-dev] [RFCv3 07/11] nir: add lowering pass for glBitmap

2016-01-31 Thread Rob Clark
From: Rob Clark Signed-off-by: Rob Clark --- src/compiler/Makefile.sources | 1 + src/compiler/nir/nir.h | 7 ++ src/compiler/nir/nir_lower_bitmap.c | 166 3 files changed, 174 insertions(+) create mode 100644 src/compiler/nir/nir_low

[Mesa-dev] [RFCv3 02/11] gallium: add NIR as a possible IR

2016-01-31 Thread Rob Clark
From: Rob Clark Signed-off-by: Rob Clark --- src/gallium/include/pipe/p_defines.h | 1 + src/gallium/include/pipe/p_state.h | 6 ++ 2 files changed, 7 insertions(+) diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index 3a1c691..1365d66 100644 ---

[Mesa-dev] [RFCv3 03/11] nir: add helper to calculate type size

2016-01-31 Thread Rob Clark
From: Rob Clark Currently the vec4 version of this is duplicated in brw and mesa/st (although the mesa/st version handles 64b types). There is also a scalar version floating around in brw. We should consolidate all of these. Signed-off-by: Rob Clark --- src/compiler/nir_types.cpp

[Mesa-dev] [RFCv3 04/11] nir: allow pre-resolved sampler uniform locations

2016-01-31 Thread Rob Clark
From: Rob Clark With TGSI, the ir_variable::data.location gets fixed up to be a stage local location (rather than program global). In this case we need to skip the UniformStorage[location] lookup. Signed-off-by: Rob Clark --- src/compiler/nir/nir_lower_samplers.c | 23 ---

[Mesa-dev] [RFCv3 00/11] gallium: add support for NIR as alternate IR

2016-01-31 Thread Rob Clark
From: Rob Clark Ok, v3 of something I've been working on here and there for a while.. Since the last time I've sent this patchset, I've added support for lowering drawpix/bitmap in NIR, as well as a NIR equiv to tgsi_emulate. In addition, I've added a pass to lower builtin uniforms, for reasons

Re: [Mesa-dev] [PATCH 1/2] virgl: reuse screen when fd is already open

2016-01-31 Thread Rob Clark
On Sun, Jan 31, 2016 at 6:18 AM, Emil Velikov wrote: > Hi Rob, > > On 30 January 2016 at 00:36, Rob Herring wrote: >> It is necessary to share the screen between mesa and gralloc to >> properly ref count resources. This implements a hash lookup on >> the file description to re-use an already crea

[Mesa-dev] [PATCH] meta: Check after null return value at blitframebuffer_texture()

2016-01-31 Thread Juha-Pekka Heikkila
Look after _mesa_meta_setup_sampler() return value. Signed-off-by: Juha-Pekka Heikkila --- src/mesa/drivers/common/meta_blit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/common/meta_blit.c b/src/mesa/drivers/common/meta_blit.c index 5d80f7d..7e4c6cb 100644 --- a/src/

Re: [Mesa-dev] [PATCH 5/7] mesa_st: Update framebuffer state with no.of samples, layers

2016-01-31 Thread Ilia Mirkin
On Sun, Jan 31, 2016 at 1:25 AM, Edward O'Callaghan wrote: > Handle the case of ARB_framebuffer_no_attachment. > Also, kill off a dead debug printf() call while we are here. > --- > src/mesa/state_tracker/st_atom_framebuffer.c | 8 +--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > di

Re: [Mesa-dev] [PATCH 4/7] gallium: Put no.of {samples, layers} into pipe_framebuffer_state

2016-01-31 Thread Ilia Mirkin
On Sun, Jan 31, 2016 at 1:25 AM, Edward O'Callaghan wrote: > Here we store the number of samples and layers directly in the > pipe_framebuffer_state so that in the case of > ARB_framebuffer_no_attachment we may make use of them directly. > > Further, we adjust various gallium/auxiliary helper func

Re: [Mesa-dev] [PATCH 3/7] mesa_st: Use _mesa_geometric_ functions appropriately

2016-01-31 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin On Sun, Jan 31, 2016 at 1:25 AM, Edward O'Callaghan wrote: > Change references to gl_framebuffer::Width, Height, MaxNumLayers > and Visual::samples to use the _mesa_geometric_ convenience functions > for those places where the geometry of the gl_framebuffer is needed. >

Re: [Mesa-dev] [PATCH 1/7] gallium: Add PIPE_CAP_FRAMEBUFFER_LAYERS

2016-01-31 Thread Ilia Mirkin
This seems odd. When would this not just be MaxArrayTextureLayers? IMO a plain enable cap, like PIPE_CAP_FRAMEBUFFER_NO_ATTACHMENTS makes more sense here. On Sun, Jan 31, 2016 at 1:25 AM, Edward O'Callaghan wrote: > diff --git a/src/mesa/state_tracker/st_extensions.c > b/src/mesa/state_tracker/s

Re: [Mesa-dev] [PATCH 6/7] st/mesa: convert GLSL image intrinsics into TGSI

2016-01-31 Thread Ilia Mirkin
On Sun, Jan 31, 2016 at 2:37 AM, Dave Airlie wrote: >> + for (i = 0; i < program->shader->NumImages; i++) { >> + if (program->images_used & (1 << i)) { >> + t->images[i] = ureg_DECL_image(ureg, i, >> +program->image_targets[i], >> +

Re: [Mesa-dev] [PATCH 1/2] virgl: reuse screen when fd is already open

2016-01-31 Thread Emil Velikov
Hi Rob, On 30 January 2016 at 00:36, Rob Herring wrote: > It is necessary to share the screen between mesa and gralloc to > properly ref count resources. This implements a hash lookup on > the file description to re-use an already created screen. This is > a similar implementation as freedreno an

Re: [Mesa-dev] [PATCH 1/2] configure.ac: don't require EGL/DRM ang GBM if OpenGL is disabled

2016-01-31 Thread Emil Velikov
On 25 January 2016 at 11:24, Michel Dänzer wrote: > On 23.01.2016 02:14, Marek Olšák wrote: >> On Fri, Jan 22, 2016 at 6:02 PM, Emil Velikov >> wrote: >>> On 22 January 2016 at 16:50, Marek Olšák wrote: On Fri, Jan 22, 2016 at 5:32 PM, Emil Velikov wrote: > On 22 January 2016 at

Re: [Mesa-dev] [PATCH] compiler: removed unused Makefile.sources

2016-01-31 Thread Emil Velikov
On 30 January 2016 at 23:03, Rob Clark wrote: > On Sat, Jan 30, 2016 at 3:38 PM, Rob Herring wrote: >> On Sat, Jan 30, 2016 at 2:06 PM, Rob Clark wrote: >>> From: Rob Clark >>> >>> We seem to end up w/ duplication between compiler/Makefile.sources and >>> compiler/glsl/Makefile.sources. The la

Re: [Mesa-dev] [PATCH 6/6] virgl: also build vtest for Android

2016-01-31 Thread Emil Velikov
On 29 January 2016 at 20:52, Rob Herring wrote: > Enabling swrast on Android causes a link error because vtest is missing. > > Signed-off-by: Rob Herring Reviewed-by: Emil Velikov -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://l

Re: [Mesa-dev] [PATCH 5/6] Android: disable unused-parameter warning

2016-01-31 Thread Emil Velikov
On 29 January 2016 at 20:52, Rob Herring wrote: > Android builds with -Wunused-parameter enabled which results in spewing > lots of warnings. Disable it so more meaningful warnings are more visible. > Would be great if one day we resolve them and even toggle -Wextra. Although I might be alone thin

Re: [Mesa-dev] [PATCH 4/6] Android: enable building on arm64

2016-01-31 Thread Emil Velikov
On 29 January 2016 at 20:52, Rob Herring wrote: > Define the DEFAULT_DRIVER_DIR for arm64 builds. > > Cc: Emil Velikov Reviewed-by: Emil Velikov > Cc: Chih-Wei Huang > Signed-off-by: Rob Herring > --- > src/egl/Android.mk | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/egl/Andro

Re: [Mesa-dev] [PATCH 3/6] Android: Fix building secondary arch in mixed 32/64-bit builds

2016-01-31 Thread Emil Velikov
On 29 January 2016 at 20:52, Rob Herring wrote: > At least in Android M, using LOCAL_CC does not work for secondary arch > when doing dual arch builds. Use LOCAL_CLFAGS and LOCAL_CONLYFLAGS > instead. > Not really Android M specific afaict. You can get issues even with Android 4.{3,4} as long as y

Re: [Mesa-dev] [PATCH 2/6] Android: fix x86 gallium builds

2016-01-31 Thread Emil Velikov
On 29 January 2016 at 20:52, Rob Herring wrote: > Builds with gallium enabled fail on x86 with linker error: > > external/mesa3d/src/mesa/vbo/vbo_exec_array.c:127: error: undefined reference > to '_mesa_uint_array_min_max' > > Fix this by adding the missing file sse_minmax.c. > > Signed-off-by: R

Re: [Mesa-dev] [PATCH 1/6] Android: fix build break from nir/glsl move to compiler/

2016-01-31 Thread Emil Velikov
Hi Rob, On 29 January 2016 at 20:52, Rob Herring wrote: > Commits a39a8fbbaa12 ("nir: move to compiler/") and eb63640c1d38 > ("glsl: move to compiler/") broke Android builds. Fix them. > > Built with i915, i965, freedreno, r300g, r600g, and virgl enabled. > > Cc: Emil Velikov > Signed-off-by: Ro