[Mesa-dev] [PATCH 25/40] target-helpers: add a non-inline drm_helper.h

2015-10-17 Thread Emil Velikov
ions if we can make the ifdef-erry less ugly. Signed-off-by: Emil Velikov --- src/gallium/auxiliary/target-helpers/drm_helper.h | 236 ++ 1 file changed, 236 insertions(+) create mode 100644 src/gallium/auxiliary/target-helpers/drm_helper.h diff --git a/src/gallium/auxili

[Mesa-dev] [PATCH 08/40] pipe-loader: remove HAVE_DRM_LOADER_GALLIUM and HAVE_PIPE_LOADER_DRM

2015-10-17 Thread Emil Velikov
... in favour of HAVE_LIBDRM. After all we solely want to build the code when the latter is available. In the not too distant future we will remove the libudev/sysfs dependency and simplify configure.ac even further. XXX: Check this wrt the previous 1-2 commits. Signed-off-by: Emil Velikov

[Mesa-dev] [PATCH 19/40] gallium: rename libpipe_loader to libpipe_loader_dynamic

2015-10-17 Thread Emil Velikov
With the next commits we'll introduce a 'static' version, which will essentially load the statically linked-in pipe-drivers, rather than the standalone pipe-$foo.so ones. Signed-off-by: Emil Velikov --- src/gallium/auxiliary/pipe-loader/Makefile.am | 8 src/gallium/targ

[Mesa-dev] [PATCH 39/40] targets/nine: remove unused static functions

2015-10-17 Thread Emil Velikov
Dead code since commit 8f50614910c40366d94964fe2c5da5772aff2f96 Cc: Axel Davy Cc: Tiziano Bacocco Signed-off-by: Emil Velikov --- src/gallium/targets/d3dadapter9/drm.c | 36 --- 1 file changed, 36 deletions(-) diff --git a/src/gallium/targets/d3dadapter9/drm.c

[Mesa-dev] [PATCH 37/40] targets/nine: add note about fd owndership

2015-10-17 Thread Emil Velikov
Cc: Axel Davy Signed-off-by: Emil Velikov --- src/gallium/targets/d3dadapter9/Makefile.am | 1 + src/gallium/targets/d3dadapter9/drm.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/gallium/targets/d3dadapter9/Makefile.am b/src/gallium/targets/d3dadapter9/Makefile.am index

[Mesa-dev] [PATCH 32/40] {st, targets}/nine: use static/dynamic pipe-loader

2015-10-17 Thread Emil Velikov
Analogous to previous commits. Cc: Axel Davy Signed-off-by: Emil Velikov --- src/gallium/targets/d3dadapter9/Makefile.am | 13 - src/gallium/targets/d3dadapter9/drm.c | 24 +++- 2 files changed, 7 insertions(+), 30 deletions(-) diff --git a/src/gallium

[Mesa-dev] [PATCH 35/40] st/dri: NULL check the pscreen earlier

2015-10-17 Thread Emil Velikov
We delay the null check only to jump through hoops to work around that. Check early to make our lives easier. Signed-off-by: Emil Velikov --- src/gallium/state_trackers/dri/dri2.c | 22 -- src/gallium/state_trackers/dri/dri_screen.c | 5 - src/gallium

[Mesa-dev] [PATCH 40/40] util: use RTLD_LOCAL with util_dl_open()

2015-10-17 Thread Emil Velikov
Otherwise we risk things blowing up due to conflicting symbols. Signed-off-by: Emil Velikov --- src/gallium/auxiliary/util/u_dl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_dl.c b/src/gallium/auxiliary/util/u_dl.c index aca435d..9b97d8d

[Mesa-dev] [PATCH 33/40] target-helpers: remove inline_drm_helper.h

2015-10-17 Thread Emil Velikov
As of earlier all the targets use the non inline version. Don't forget to remove the function prototypes/declarations. Signed-off-by: Emil Velikov --- .../auxiliary/target-helpers/inline_drm_helper.h | 339 - src/gallium/include/state_tracker/drm_driver.h | 6

[Mesa-dev] [PATCH 36/40] auxiliary/vl: Don't close the drm fd on failure

2015-10-17 Thread Emil Velikov
Ported from an identically named commit in st/xa commit 35cf3831d71770211f29da6608313dc1f6213d7b Author: Thomas Hellstrom Date: Thu Jul 3 02:07:36 2014 -0700 st/xa: Don't close the drm fd on failure v2 Signed-off-by: Emil Velikov --- src/gallium/auxiliary/vl/vl_winsys_dri.c | 2

[Mesa-dev] [PATCH 28/40] pipe-loader: add preliminary Android support

2015-10-17 Thread Emil Velikov
Add a 'static' pipe-loader build, which will be used with follow-up commits. Signed-off-by: Emil Velikov --- src/gallium/Android.mk | 1 + src/gallium/auxiliary/pipe-loader/Android.mk | 49 2 files changed, 50 insertions(+) create m

[Mesa-dev] [PATCH 27/40] pipe-loader: add preliminary scons support

2015-10-17 Thread Emil Velikov
Add a 'static' pipe-loader build, which will be used with follow-up commits. Signed-off-by: Emil Velikov --- src/gallium/SConscript| 1 + src/gallium/auxiliary/pipe-loader/Makefile.am | 2 ++ src/gallium/auxiliary/pipe-loader/SConsc

[Mesa-dev] [PATCH 20/40] pipe-loader: add a dummy 'static' pipe-loader

2015-10-17 Thread Emil Velikov
: Francisco Jerez Signed-off-by: Emil Velikov --- src/gallium/auxiliary/pipe-loader/Makefile.am | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/gallium/auxiliary/pipe-loader/Makefile.am b/src/gallium/auxiliary/pipe-loader/Makefile.am index 974cf08

[Mesa-dev] [PATCH 15/40] pipe-loader: rework the sw backend

2015-10-17 Thread Emil Velikov
Move the winsys into the pipe-target, bla bla bla XXX: separate pipe-drivers are likely to be busted Signed-off-by: Emil Velikov --- src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c | 94 +- src/gallium/include/state_tracker/sw_driver.h | 21 + src/gallium

[Mesa-dev] [PATCH 17/40] pipe-loader: annotate the ops as const data

2015-10-17 Thread Emil Velikov
Already defined as such in struct pipe_loader_device::ops. Cc: Tom Stellard Cc: Francisco Jerez Signed-off-by: Emil Velikov --- src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c | 4 ++-- src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c | 4 ++-- 2 files changed, 4 insertions(+), 4

[Mesa-dev] [PATCH 21/40] pipe-loader: wire up the 'static' drm pipe-loader

2015-10-17 Thread Emil Velikov
XXX: More than happy to rename things - header/functions/etc. Signed-off-by: Emil Velikov --- src/gallium/auxiliary/pipe-loader/Makefile.am | 6 +- .../auxiliary/pipe-loader/pipe_loader_drm.c| 119 - .../auxiliary/target-helpers/drm_helper_public.h | 34

[Mesa-dev] [PATCH 29/40] {st, targets}/dri: use static/dynamic pipe-loader

2015-10-17 Thread Emil Velikov
XXX: configure knob ? Signed-off-by: Emil Velikov --- .../auxiliary/target-helpers/inline_drm_helper.h | 24 --- .../auxiliary/target-helpers/inline_sw_helper.h| 28 -- src/gallium/drivers/softpipe/Automake.inc | 3 --- src/gallium/state_tra

[Mesa-dev] [PATCH 31/40] {st, targets}/xa: use static/dynamic pipe-loader

2015-10-17 Thread Emil Velikov
Analogous to previous commits. Signed-off-by: Emil Velikov --- src/gallium/state_trackers/xa/Makefile.am | 5 - src/gallium/state_trackers/xa/xa_tracker.c | 16 ++-- src/gallium/targets/xa/Makefile.am | 7 +-- src/gallium/targets/xa/target.c| 2 +- 4

[Mesa-dev] [PATCH 38/40] targets/nine: add note about messy header inclusion order

2015-10-17 Thread Emil Velikov
Cc: Axel Davy Signed-off-by: Emil Velikov --- src/gallium/targets/d3dadapter9/drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/targets/d3dadapter9/drm.c b/src/gallium/targets/d3dadapter9/drm.c index dc040dc..c9559b9 100644 --- a/src/gallium/targets/d3dadapter9/drm.c +++ b

[Mesa-dev] [PATCH 16/40] pipe-loader: teardown the winsys, if create_screen fails

2015-10-17 Thread Emil Velikov
i.e. plug some (hard to hit) memory leaks. Signed-off-by: Emil Velikov --- src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c b/src/gallium/auxiliary/pipe-loader

[Mesa-dev] [PATCH 34/40] st/dri: Don't close the drm fd on failure

2015-10-17 Thread Emil Velikov
Ported from an identically named commit in st/xa commit 35cf3831d71770211f29da6608313dc1f6213d7b Author: Thomas Hellstrom Date: Thu Jul 3 02:07:36 2014 -0700 st/xa: Don't close the drm fd on failure v2 Signed-off-by: Emil Velikov --- src/gallium/state_trackers/dri/dri2.c | 4 ++

[Mesa-dev] [PATCH 26/40] pipe-loader: don't mix code and variable declarations

2015-10-17 Thread Emil Velikov
We cannot use this C99 feature here quite yet, as the code needs to be ok with MSVC prior to 2013. Signed-off-by: Emil Velikov --- src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/pipe-loader

[Mesa-dev] [PATCH 30/40] {auxiliary, targets}/vl: use static/dynamic pipe-loader

2015-10-17 Thread Emil Velikov
Analogous to previous commit. Signed-off-by: Emil Velikov --- src/gallium/auxiliary/Makefile.am| 6 -- src/gallium/auxiliary/vl/vl_winsys_dri.c | 8 src/gallium/targets/omx/Makefile.am | 7 +-- src/gallium/targets/omx/target.c | 2 +- src/gallium/targets/va

Re: [Mesa-dev] [PATCH 15/40] pipe-loader: rework the sw backend

2015-10-18 Thread Emil Velikov
On 17 October 2015 at 23:57, Emil Velikov wrote: > Move the winsys into the pipe-target, bla bla bla > > XXX: separate pipe-drivers are likely to be busted > The XXX: is a left over and the pipe-drivers should be fine. Upon a second thought this whole "keep the sw winsys+dri

Re: [Mesa-dev] [PATCH 37/40] targets/nine: add note about fd owndership

2015-10-18 Thread Emil Velikov
On 17 October 2015 at 23:58, Emil Velikov wrote: > Cc: Axel Davy > Signed-off-by: Emil Velikov > --- > src/gallium/targets/d3dadapter9/Makefile.am | 1 + > src/gallium/targets/d3dadapter9/drm.c | 2 ++ > 2 files changed, 3 insertions(+) > > diff --git a/src/gal

Re: [Mesa-dev] [PATCH] glsl: fix SSBO regression

2015-10-18 Thread Emil Velikov
xt pass */ > + d = ir; Wouldn't the ir_type_dereference_array case, above, need a similar fix ? -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [RFC 1/2] gallium: add renderonly driver

2015-10-19 Thread Emil Velikov
ost of the cases the two devices are tightly coupled. -Emil P.S. The half-way argument always holds true, but considering the limited activity on the etnaviv front, half-way is better than nothing. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org h

Re: [Mesa-dev] [PATCH] glsl: fix SSBO regression

2015-10-19 Thread Emil Velikov
On 18 October 2015 at 13:45, Timothy Arceri wrote: > On Sun, 2015-10-18 at 11:34 +0100, Emil Velikov wrote: >> Hi Timothy, >> >> On 17 October 2015 at 23:19, Timothy Arceri >> wrote: >> > Fixes regression cased by bb5aeb854915ba67abc56257f830d002c956439e >&

Re: [Mesa-dev] [PATCH 1/2] i965: remove cache_aux_free_func array

2015-10-19 Thread Emil Velikov
Ping on these two trivial patches ? -Emil On 7 October 2015 at 12:38, Emil Velikov wrote: > There is only one function that can be called, which is well known at > compilation time. > > The abstraction used here seems unnecessary, so let's use a direct call > to brw_stage_p

Re: [Mesa-dev] [RFC] [PATCH 00/10] NIR header (C++ compilation) TLC

2015-10-19 Thread Emil Velikov
On 7 October 2015 at 11:11, Emil Velikov wrote: > Hi all, > > A while back we had a case where NIR had C99 initializers in its public > headers. That's not desired as ISO C++ does not allow them. > > So I took a quick look about wiring up a compilation test at 'ma

[Mesa-dev] [PATCH 7/7] i965: enable ARB_shader_clock on gen7+

2015-10-19 Thread Emil Velikov
Signed-off-by: Emil Velikov --- docs/relnotes/11.1.0.html| 1 + src/mesa/drivers/dri/i965/intel_extensions.c | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/relnotes/11.1.0.html b/docs/relnotes/11.1.0.html index dcf425e..3d948eb 100644 --- a/docs/relnotes/11.1.0

[Mesa-dev] [PATCH 0/7] ARB_shader_clock support

2015-10-19 Thread Emil Velikov
t the chance to test this properly. Any reviews and testers will be greatly appreciated. -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 6/7] i965: Implement nir_intrinsic_shader_clock

2015-10-19 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 9 + src/mesa/drivers/dri/i965/brw_vec4_nir.cpp | 10 ++ 2 files changed, 19 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index

[Mesa-dev] [PATCH 2/7] glsl: add ARB_shader_clock infrastructure

2015-10-19 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/glsl/glcpp/glcpp-parse.y| 3 +++ src/glsl/glsl_parser_extras.cpp | 1 + src/glsl/glsl_parser_extras.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y index 1d7a3af..4acccf7 100644 --- a

[Mesa-dev] [PATCH 5/7] i965/fs: move the fs_reg::smear() from get_timestamp() to the callers

2015-10-19 Thread Emil Velikov
We're about to reuse get_timestamp() for the nir_intrinsic_shader_clock. The in the latter the generalisation does not apply, so move the smear() where needed. This also makes the function analogous to the vec4 one. Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/i965/brw_fs.cpp

[Mesa-dev] [PATCH 3/7] glsl: add support for the clock2x32ARB function

2015-10-19 Thread Emil Velikov
v2: correctly set the return type Signed-off-by: Emil Velikov --- src/glsl/builtin_functions.cpp | 43 ++ 1 file changed, 43 insertions(+) diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index aae25f8..509a57b 100644 --- a

[Mesa-dev] [PATCH 1/7] mesa: add infra for ARB_shader_clock

2015-10-19 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/mesa/main/extensions.c | 1 + src/mesa/main/mtypes.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index b2c88c3..64972fa 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main

[Mesa-dev] [PATCH 4/7] nir: add shader_clock intrinsic

2015-10-19 Thread Emil Velikov
v2: Add flags and inline comment/description. v3: None of the input/outputs are variables Signed-off-by: Emil Velikov --- src/glsl/nir/glsl_to_nir.cpp | 6 ++ src/glsl/nir/nir_intrinsics.h | 8 2 files changed, 14 insertions(+) diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl

Re: [Mesa-dev] [PATCH] st/omx/dec/h264: fix field picture type 0 poc disorder

2015-10-19 Thread Emil Velikov
On 19 October 2015 at 15:55, Liu, Leo wrote: > Ping... > FYI adding actual commit message does make reviewers happy. Then again, although it makes sense, I don't feel qualified to review this :( -Emil ___ mesa-dev mailing li

Re: [Mesa-dev] [PATCH 2/7] st/va: properly defines VAImageFormat formats and improve VaCreateImage

2015-10-19 Thread Emil Velikov
>img->pitches[0] = w * 4; >img->offsets[0] = 0; > diff --git a/src/gallium/state_trackers/va/va_private.h > b/src/gallium/state_trackers/va/va_private.h > index 1ea7be7..3479156 100644 > --- a/src/gallium/state_trackers/va/va_private.h >

Re: [Mesa-dev] [PATCH 4/7] st/va: implement VaCreateSurfaces2 and VaQuerySurfaceAttributes

2015-10-19 Thread Emil Velikov
RROR_INVALID_PARAMETER; > + > +switch (attrib_list[i].value.value.i) { > +case VA_SURFACE_ATTRIB_MEM_TYPE_VA: > +default:{ > +return VA_STATUS_ERROR_UNSUPPORTED_MEMORY_TYPE;} > +} > +} > + > +if ((attrib_list[i].type == VASurfaceAttribExternalBufferDescriptor) > && > +(attrib_list[i].flags == VA_SURFACE_ATTRIB_SETTABLE)) { > +if (attrib_list[i].value.type != VAGenericValueTypePointer) > +return VA_STATUS_ERROR_INVALID_PARAMETER; > +memory_attibute = (VASurfaceAttribExternalBuffers > *)attrib_list[i].value.value.p; > +} > +} > + > +/* support 420 & 422 & RGB32 format, 422 and RGB32 are only used > + * for post-processing (including color conversion) */ > +if (VA_RT_FORMAT_YUV420 != format && > +VA_RT_FORMAT_YUV422 != format && > +VA_RT_FORMAT_YUV444 != format && > +VA_RT_FORMAT_YUV411 != format && > +VA_RT_FORMAT_YUV400 != format && We don't have any support for 400 or 411. Why are they in the list ? Cheers, Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/7] nvc0: fix crash when nv50_miptree_from_handle fails

2015-10-19 Thread Emil Velikov
tbl; Did you actually experience the crash or did you notice this while browsing through ? Either way - abeit unlikely we can return NULL, so let's avoid the crash. Cc: "11.0" Reviewed-by: Emil Velikov Thanks Emil g ___ mesa-dev mailing l

Re: [Mesa-dev] [PATCH 3/7] st/va: in VaPutImage only destroy previous buffer if pipe->create_video_buffer succeeds

2015-10-19 Thread Emil Velikov
fer_format = old_surf_format; > + return VA_STATUS_ERROR_ALLOCATION_FAILED; > + } > + >if (surf->buffer) Drop the if (unconditionally destroy the buffer). We're already checking it before we get here. With the above sorted Reviewed-by: Emil Velikov -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 7/7] st/va: add headless support, i.e. VA_DISPLAY_DRM

2015-10-19 Thread Emil Velikov
T(vl_screen); > + > +#if GALLIUM_STATIC_TARGETS > + drv->vscreen->pscreen = dd_create_screen(drm_info->fd); > +#else > + int loader_fd = dup(drm_info->fd); > + if (loader_fd == -1) > + goto error_screen; > + > + i

Re: [Mesa-dev] [PATCH 5/7] st/va: implement dmabuf import for VaCreateSurfaces2

2015-10-19 Thread Emil Velikov
B_MEM_TYPE_DRM_PRIME: > +vaStatus = suface_from_external_memory(ctx, surf, > memory_attibute, i, surfaces, &templat); > +if (vaStatus != VA_STATUS_SUCCESS) > + goto no_res; > +break; > default: > assert(0); > } > diff --git a/src/gallium/state_trackers/va/va_private.h > b/src/gallium/state_trackers/va/va_private.h > index e98f64f..2cdd787 100644 > --- a/src/gallium/state_trackers/va/va_private.h > +++ b/src/gallium/state_trackers/va/va_private.h > @@ -33,6 +33,7 @@ > > #include > #include > +#include > Please include this where needed. -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 6/7] st/va: add initial Video Post Processing support

2015-10-19 Thread Emil Velikov
VAProcPipelineCaps *pipeline_cap) > +{ > + unsigned int i = 0; > + > + if (!ctx) > + return VA_STATUS_ERROR_INVALID_CONTEXT; > + > + if (!pipeline_cap) > + return VA_STATUS_ERROR_INVALID_PARAMETER; > + > + if (num_filters && !fil

Re: [Mesa-dev] [PATCH 6/7] st/va: add initial Video Post Processing support

2015-10-19 Thread Emil Velikov
On 19 October 2015 at 18:17, Ilia Mirkin wrote: > On Mon, Oct 19, 2015 at 1:10 PM, Emil Velikov > wrote: >> On 17 October 2015 at 00:14, Julien Isorce wrote: >>> if (!ctx) >>>return VA_STATUS_ERROR_INVALID_CONTEXT; >>> >>> - if (!(

[Mesa-dev] [PATCH v2 16/40] pipe-loader: teardown the winsys, if create_screen fails

2015-10-19 Thread Emil Velikov
i.e. plug some (hard to hit) memory leaks. v2: really teardown the winsys (it rebase fallout), per Brian. Signed-off-by: Emil Velikov --- src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/pipe

Re: [Mesa-dev] [PATCH 15/40] pipe-loader: rework the sw backend

2015-10-19 Thread Emil Velikov
On 19 October 2015 at 17:03, Brian Paul wrote: > On 10/17/2015 04:57 PM, Emil Velikov wrote: >> >> Move the winsys into the pipe-target, bla bla bla >> >> XXX: separate pipe-drivers are likely to be busted >> >> Signed-off-by: Emil Velikov >&g

Re: [Mesa-dev] [RFC PATCH 00/40] Rework/consolidate the pipe-loader business

2015-10-19 Thread Emil Velikov
On 19 October 2015 at 17:07, Brian Paul wrote: > On 10/17/2015 04:57 PM, Emil Velikov wrote: >> >> Hi all, >> >> Here goes a series (which is slightly overdue), that reworks the >> target-helpers into a pipe-loader like interface. As such the >> state-trac

Re: [Mesa-dev] [PATCH 7/7] st/va: add headless support, i.e. VA_DISPLAY_DRM

2015-10-20 Thread Emil Velikov
On 20 October 2015 at 17:06, Julien Isorce wrote: > > > On 19 October 2015 at 17:16, Emil Velikov wrote: >> >> On 17 October 2015 at 00:14, Julien Isorce >> wrote: >> > This patch allows to use gallium vaapi without requiring >> > a X server runni

[Mesa-dev] [PATCHv4 4/7] nir: add shader_clock intrinsic

2015-10-20 Thread Emil Velikov
v2: Add flags and inline comment/description. v3: None of the input/outputs are variables v4: Drop clockARB reference, relate code motion barrier comment wrt intrinsic flag. Signed-off-by: Emil Velikov --- Matt, Hopefully the updated comment makes more sense (the clockARB reference was an

[Mesa-dev] [PATCH 5/7] i965/fs: move the fs_reg::smear() from get_timestamp() to the callers

2015-10-20 Thread Emil Velikov
We're about to reuse get_timestamp() for the nir_intrinsic_shader_clock. In the latter the generalisation does not apply, so move the smear() where needed. This also makes the function analogous to the vec4 one. v2: Tweak the comment - The caller -> We (Matt, Connor). Signed-off-by: Emil

[Mesa-dev] [PATCHv2 6/7] i965: Implement nir_intrinsic_shader_clock

2015-10-20 Thread Emil Velikov
v2: - Add a few const qualifiers for good measure. - Drop unneeded retype()s (Matt) - Convert timestamp to SIMD8/16, as fs_visitor::get_timestamp() returns SIMD4 (Connor) Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 11 +++ src/mesa/drivers/dri/i965

Re: [Mesa-dev] [PATCH 0/7] ARB_shader_clock support

2015-10-20 Thread Emil Velikov
On 19 October 2015 at 19:39, Matt Turner wrote: > On Mon, Oct 19, 2015 at 7:45 AM, Emil Velikov > wrote: >> Hi all, >> >> This is a resent of the previous RFC series with a few minor changes >> - fs_reg:;smear() has been moved out of get_timestamp() >> - cl

Re: [Mesa-dev] [PATCH] mesa/glformats: Undo code changes from _mesa_base_tex_format() move

2015-10-21 Thread Emil Velikov
hose modifications. > > v2. Actually include ASTC support again. > Thanks Nanley. I take it that with this in place the KHR_texture_compression_astc_ldr piglits/tests are back online (pass) ? I have double-checked and this patch does fix the erroneous reverts by c6bf1cd. Review

Re: [Mesa-dev] [PATCHv4 4/7] nir: add shader_clock intrinsic

2015-10-21 Thread Emil Velikov
On 20 October 2015 at 19:58, Connor Abbott wrote: > On Tue, Oct 20, 2015 at 12:55 PM, Emil Velikov > wrote: [snip] >> +/* >> + * Shader clock intrinsic with semantics analogous to the clock2x32ARB() >> + * GLSL intrinsic. >> + * The latter can be used as code moti

[Mesa-dev] [PATCHv5 4/7] nir: add shader_clock intrinsic

2015-10-21 Thread Emil Velikov
From: Emil Velikov v2: Add flags and inline comment/description. v3: None of the input/outputs are variables v4: Drop clockARB reference, relate code motion barrier comment wrt intrinsic flag. v5: Drop the "thus we can eliminate..." comment (Connor) Signed-off-by: Emil Velikov R

[Mesa-dev] [PATCHv3 5/7] i965/fs: move the fs_reg::smear() from

2015-10-21 Thread Emil Velikov
From: Emil Velikov We're about to reuse get_timestamp() for the nir_intrinsic_shader_clock. In the latter the generalisation does not apply, so move the smear() where needed. This also makes the function analogous to the vec4 one. v2: Tweak the comment - The caller -> We (Matt, Con

[Mesa-dev] [PATCHv3 6/7] i965: Implement nir_intrinsic_shader_clock

2015-10-21 Thread Emil Velikov
From: Emil Velikov v2: - Add a few const qualifiers for good measure. - Drop unneeded retype()s (Matt) - Convert timestamp to SIMD8/16, as fs_visitor::get_timestamp() returns SIMD4 (Connor) v3: - Remove unneeded temporary + MOV (Connor) Signed-off-by: Emil Velikov Reviewed-by: Connor

[Mesa-dev] New stable-branch 11.0 candidate pushed

2015-10-21 Thread Emil Velikov
r comments that you would like to share before the release, please go ahead. Cheers, Emil Mesa stable queue - Nominated (18) == Boyan Ding (1): i915: Add XRGB format to intel_screen_make_configs Brian Paul (1): configure: don't try to bu

Re: [Mesa-dev] [PATCH 1/9] i965/vec4: Don't emit MOVs for unused URB slots.

2015-10-21 Thread Emil Velikov
e these in the future ? Thanks Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/2] i965: remove cache_aux_free_func array

2015-10-21 Thread Emil Velikov
On 21 October 2015 at 21:33, Kenneth Graunke wrote: > On Monday, October 19, 2015 02:54:56 PM Emil Velikov wrote: >> Ping on these two trivial patches ? >> >> -Emil > > Oh, sorry, I thought I'd sent R-bs for these... > > Both are > Reviewed-by: Kennet

Re: [Mesa-dev] [PATCH 1/2] i965: remove cache_aux_free_func array

2015-10-22 Thread Emil Velikov
On 21 October 2015 at 22:44, Matt Turner wrote: > On Wed, Oct 21, 2015 at 2:16 PM, Emil Velikov > wrote: >> On 21 October 2015 at 21:33, Kenneth Graunke wrote: >>> On Monday, October 19, 2015 02:54:56 PM Emil Velikov wrote: >>>> Ping on these two trivial pat

Re: [Mesa-dev] [RFC 03/21] mesa/extensions: Wrap array entries in macros

2015-10-22 Thread Emil Velikov
is feature. Alternatively feel free to ask Brian/Jose, as they have a fair bit of experience in the area. That aside, I'm in favour of keeping the comments as is. The editing comment does not apply imho. -Emil ___ mesa-dev mailing list mesa-dev@lis

Re: [Mesa-dev] [RFC 04/21] mesa/extensions: Move entries entries to seperate file

2015-10-22 Thread Emil Velikov
extensions.c \ main/extensions.h \ + main/extensions_table.h \ main/fbobject.c \ main/fbobject.h \ main/feedback.c \ -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [RFC 05/21] mesa/extensions: Add extension::version

2015-10-22 Thread Emil Velikov
s a bitset. */ > uint8_t api_set; > > + /** Minimum version the extension requires for the given API > +* (see gl_api defined in mtypes.h) > +*/ > + GLuint version[API_OPENGL_LAST + 1]; > + Please use uint*t type, like the surrounding code and add a note that the

Re: [Mesa-dev] [RFC 06/21] mesa/extensions: Create _mesa_extension_supported()

2015-10-22 Thread Emil Velikov
amp;& > + (ctx->Version >= i->version[ctx->API]) && > + base[i->offset]; Bikeshed: I realise that you're copying most of these, but wouldn't it be better if we use more common/intuitive variable names ? ei -> i or idx i -> ext -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [RFC 10/21] mesa: Remove equality check in helper functions

2015-10-22 Thread Emil Velikov
o real upside... Pretty much my line of thinking. Perhaps it was applicable for earlier iterations of the series ? -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [RFC 18/21] mesa/extensions: Remove extra memsets on gl_extensions

2015-10-22 Thread Emil Velikov
gt; +struct gl_extensions _mesa_extension_override_enables = {0}; > +struct gl_extensions _mesa_extension_override_disables = {0}; Side note: once ARB_compute_shader lands in for i965 we can even make these local/static. -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [RFC 20/21] mesa: Remove gl_extensions::dummy

2015-10-22 Thread Emil Velikov
a less mysterious one (extension_sentinel). > That's the first time I see someone calling 0, a "unsigned error value". Perhaps reword the commit message a bit ? The comment/function description should be updated as well. -Emil __

Re: [Mesa-dev] [PATCH 2/9] i965: Fill out instruction list.

2015-10-22 Thread Emil Velikov
25, /**< G45 only */ > BRW_OPCODE_NOP =126, > > diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c > b/src/mesa/drivers/dri/i965/brw_disasm.c > index db23a18..c2dac7c 100644 > --- a/src/mesa/drivers/dri/i965/brw_disasm.c > +++ b/src/mesa/drivers

Re: [Mesa-dev] [PATCH 7/9] i965: Add initial assembly validation pass.

2015-10-22 Thread Emil Velikov
are at different level and we do not have enough information within brw_validate_instructions(), do we ? Thanks Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 21/40] pipe-loader: wire up the 'static' drm pipe-loader

2015-10-22 Thread Emil Velikov
On 22 October 2015 at 15:07, Nicolai Hähnle wrote: > On 18.10.2015 00:57, Emil Velikov wrote: >> >> Add a list of driver descriptors and select one from the list, during >> probe time. >> >> As we'll need to have all the driver pipe_foo_screen_create() funct

Re: [Mesa-dev] [PATCH 21/40] pipe-loader: wire up the 'static' drm pipe-loader

2015-10-22 Thread Emil Velikov
On 22 October 2015 at 16:32, Emil Velikov wrote: > On 22 October 2015 at 15:07, Nicolai Hähnle wrote: >> On 18.10.2015 00:57, Emil Velikov wrote: >>> >>> Add a list of driver descriptors and select one from the list, during >>> probe time. >>

Re: [Mesa-dev] [RFC 20/21] mesa: Remove gl_extensions::dummy

2015-10-23 Thread Emil Velikov
On 23 October 2015 at 00:34, Nanley Chery wrote: > On Thu, Oct 22, 2015 at 3:40 AM, Emil Velikov > wrote: >> >> On 19 October 2015 at 23:44, Nanley Chery wrote: >> > From: Nanley Chery >> > >> > This variable existed to provide an unsigned e

Re: [Mesa-dev] [RFC 03/21] mesa/extensions: Wrap array entries in macros

2015-10-23 Thread Emil Velikov
On 22 October 2015 at 23:22, Nanley Chery wrote: > On Thu, Oct 22, 2015 at 3:06 AM, Emil Velikov > wrote: >> >> That aside, I'm in favour of keeping the comments as is. The editing >> comment does not apply imho. >> > > Since, there isn't a unanim

[Mesa-dev] Mesa 11.0.4

2015-10-25 Thread Emil Velikov
possible nv30: include the header of ffs prototype Chris Wilson (1): i965: Remove early release of DRI2 miptree Dave Airlie (1): mesa/uniforms: fix get_uniform for doubles (v2) Emil Velikov (3): docs: add sha256 checksums for 11.0.3 Update version to 11.0.4

Re: [Mesa-dev] [RFC 18/21] mesa/extensions: Remove extra memsets on gl_extensions

2015-10-26 Thread Emil Velikov
On 23 October 2015 at 19:46, Jordan Justen wrote: > On 2015-10-22 03:32:58, Emil Velikov wrote: >> On 19 October 2015 at 23:44, Nanley Chery wrote: >> > From: Nanley Chery >> > >> > Aside from those modified in this commit, all gl_extensions structs are >

Re: [Mesa-dev] [PATCH] nouveau: fix double free when screen_create fails

2015-10-27 Thread Emil Velikov
igned oclass = 0; > int ret, i; > > - if (!screen) > + if (!screen) { > + nouveau_device_del(&dev); >return NULL; > + } > Imho having these in screen_create() seems like the wrong 'layer'. Shouldn't one call nouveau_device_dev() from w

Re: [Mesa-dev] [PATCH] nouveau: fix double free when screen_create fails

2015-10-27 Thread Emil Velikov
On 27 October 2015 at 10:50, samuel.pitoiset wrote: > On 27/10/2015 11:37, Emil Velikov wrote: >> >> On 22 October 2015 at 00:16, Julien Isorce >> wrote: >>> >>> The real fix is in nouveau_drm_winsys.c by setting dev to 0. >>> Which means

Re: [Mesa-dev] [PATCH] mesa: set the texture target in VDPAUMapSurfacesNV

2015-10-27 Thread Emil Velikov
king about the following but I'm sure you can think of something better. "With the said commit the initialization of the Target{,Index} was moved from glBindTexture to glTextureView. One does not need the latter for GL VDPAU interop thus things broke." With those Revi

Re: [Mesa-dev] [PATCH v2] mesa/teximage: Fix S3TC regression due to ASTC interaction

2015-10-29 Thread Emil Velikov
reedesktop.org/show_bug.cgi?id=91927 Small suggestion: For future patches, please mention the commit sha/title as regressions like these happen. Not a strict requirement by any means, but quite useful for devs, testers and users alike. Thanks Emil __

[Mesa-dev] [PATCH 1/6] virgl: fix drm.h include path

2015-10-29 Thread Emil Velikov
From: Emil Velikov The drm/ prefix is required, if using the kernel provided headers. As most distros don't ship them it and we already depend on libdrm (which adds the relevant -I flag) just drop the drm/ from the include. Once a libdrm release with the virtgpu_drm.h header is released, w

[Mesa-dev] [PATCH 3/6] winsys/virgl/vtest: list all files in Makefile.sources

2015-10-29 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/gallium/winsys/virgl/vtest/Makefile.sources | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/winsys/virgl/vtest/Makefile.sources b/src/gallium/winsys/virgl/vtest/Makefile.sources index ab72560..410763f 100644 --- a/src

[Mesa-dev] [PATCH 5/6] virgl: remove the _FILE_OFFSET_BITS defines

2015-10-29 Thread Emil Velikov
From: Emil Velikov The build already sets it as needed. Signed-off-by: Emil Velikov --- src/gallium/winsys/virgl/drm/virgl_drm_winsys.c | 3 --- src/gallium/winsys/virgl/vtest/virgl_vtest_socket.c | 2 -- src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c | 2 -- 3 files changed, 7

[Mesa-dev] [PATCH 0/6] virgl: trivial build fixes/cleanups

2015-10-29 Thread Emil Velikov
Hi all, Some mostly trivial fixes which I came across whist trying to build virgl. Build tested only. -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 4/6] winsys/virgl/drm: add all files to the tarball

2015-10-29 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov --- src/gallium/winsys/virgl/drm/Makefile.sources | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/winsys/virgl/drm/Makefile.sources b/src/gallium/winsys/virgl/drm/Makefile.sources index c0baed8..eca8eb6 100644

[Mesa-dev] [PATCH 6/6] virgl: straighten the includes confusion

2015-10-29 Thread Emil Velikov
From: Emil Velikov Use the relevant GALLIUM_foo_CFLAGS which has all the requirements (not to mention VISIBITY_CFLAGS) and keep ../ out of the include directives. Signed-off-by: Emil Velikov --- src/gallium/drivers/virgl/Makefile.am | 5 + src/gallium/drivers/virgl/virgl.h

[Mesa-dev] [PATCH 2/6] virgl: move sources list to Makefile.sources

2015-10-29 Thread Emil Velikov
From: Emil Velikov ... and add the missing files while we're at it. Signed-off-by: Emil Velikov --- src/gallium/drivers/virgl/Makefile.am | 12 ++-- src/gallium/drivers/virgl/Makefile.sources | 17 + 2 files changed, 19 insertions(+), 10 deletions(-) create

[Mesa-dev] [PATCH 00/15] virgl: misc cleanups and bikeshedding

2015-10-29 Thread Emil Velikov
hod to the madness, I think. -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 00/15] virgl: misc cleanups and bikeshedding

2015-10-29 Thread Emil Velikov
hod to the madness, I think. -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 00/15] virgl: misc cleanups and bikeshedding

2015-10-29 Thread Emil Velikov
hod to the madness, I think. -Emil P.S. Apologies if you're getting this multiple times, git send-email seems to hate me today. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 00/15] virgl: misc cleanups and bikeshedding

2015-10-29 Thread Emil Velikov
On 29 October 2015 at 11:12, Emil Velikov wrote: > Hi all, > > A slightly longer series (that builds on top of the previous sent a > minute ago), that moves/renames a couple of files, adds a few inline > wrappers, 'includes what you want' and related fixes. > >

Re: [Mesa-dev] [PATCH v3] r600g: Fix special negative immediate constants when using ABS modifier.

2015-10-29 Thread Emil Velikov
g [sendemail] smtpuser = ikalvac...@gmail.com smtpencryption = tls smtpserverport = 587 smtpserver = smtp.gmail.com For ease of use you can also set the TO address in $(mesa_top)/.git/config. You can also move the above setup in here. [sendemail] to = mesa-de

[Mesa-dev] [PATCH 01/15] virgl: move virgl_hw.h into the driver dir

2015-10-29 Thread Emil Velikov
Strictly speaking virgl_hw.h should reside in the driver folder, as it describes the hardware. Moving it allows us to nuke the following strange dependency winsys/vtest > driver > winsys/drm Signed-off-by: Emil Velikov --- src/gallium/drivers/virgl/Makefile.sources | 1 + src/g

[Mesa-dev] [PATCH 14/15] virgl: unwrap the includes

2015-10-29 Thread Emil Velikov
Include what you want, rather than relying on a header foo.h N levels down the include chain, to provide something that you need. Signed-off-by: Emil Velikov --- src/gallium/drivers/virgl/virgl_buffer.c| 2 ++ src/gallium/drivers/virgl/virgl_context.c | 7 ++- src

[Mesa-dev] [PATCH 02/15] virgl: rename virgl.h to virgl_screen.h

2015-10-29 Thread Emil Velikov
Provide a more meaningful name considering it's purpose. Signed-off-by: Emil Velikov --- src/gallium/drivers/virgl/Makefile.sources | 2 +- src/gallium/drivers/virgl/virgl.h | 51 -- src/gallium/drivers/virgl/virgl_context.c | 2 +- src/gallium/dr

[Mesa-dev] [PATCH 12/15] winsys/virgl: always memset prior to ioctl

2015-10-29 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/gallium/winsys/virgl/drm/virgl_drm_winsys.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c index 11542f5..d9b4d58 100644 --- a

[Mesa-dev] [PATCH 15/15] winsys/virgl: rework line wrapping/indent

2015-10-29 Thread Emil Velikov
Wrap some of the 'omg it's getting out of hand' long lines, and re-indent where things feel off. Signed-off-by: Emil Velikov --- src/gallium/winsys/virgl/drm/virgl_drm_winsys.c| 83 --- .../winsys/virgl/vtest/virgl_vtest_socket.c| 13 ++- .../win

<    1   2   3   4   5   6   7   8   9   10   >