[Mesa-dev] [PATCH] i965: Don't forget to subtract mt->first_level in minify calls.

2014-02-22 Thread Kenneth Graunke
This fixes fbo-clear-formats GL_ARB_depth_texture on Ironlake, which regressed since commit f128bcc7c293013f4b44e4b661638333de0077c2 ("i965: Drop mt->levels[].width/height.") intel_miptree_copy_slice was calling minify(.., 7) on a 2x2 texture with mt->first_level == 7. Bugzilla: https://bugs.free

Re: [Mesa-dev] [PATCH 07/25] dri/nouveau: add GLX_MESA_query_renderer support

2014-02-22 Thread Pekka Paalanen
On Sat, 22 Feb 2014 03:03:57 + Emil Velikov wrote: > v2: nv04-2x cards support upto opengl 1.3. > v3: Include correct headers. > > Signed-off-by: Emil Velikov > --- > src/mesa/drivers/dri/nouveau/nouveau_screen.c | 83 > ++- > 1 file changed, 82 insertions(+), 1 de

[Mesa-dev] [Bug 75389] state_tracker/st_glsl_to_tgsi.cpp:5144:38: error: cannot convert 'exec_list*' to 'FILE* {aka _IO_FILE*}' for argument '1' to 'void _mesa_print_ir(FILE*, exec_list*, _mesa_glsl_p

2014-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75389 Kenneth Graunke changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 75389] state_tracker/st_glsl_to_tgsi.cpp:5144:38: error: cannot convert 'exec_list*' to 'FILE* {aka _IO_FILE*}' for argument '1' to 'void _mesa_print_ir(FILE*, exec_list*, _mesa_glsl_p

2014-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75389 Vinson Lee changed: What|Removed |Added CC||i...@freedesktop.org, |

[Mesa-dev] [Bug 75389] New: state_tracker/st_glsl_to_tgsi.cpp:5144:38: error: cannot convert 'exec_list*' to 'FILE* {aka _IO_FILE*}' for argument '1' to 'void _mesa_print_ir(FILE*, exec_list*, _mesa_g

2014-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75389 Priority: medium Bug ID: 75389 Keywords: regression CC: e...@anholt.net Assignee: mesa-dev@lists.freedesktop.org Summary: state_tracker/st_glsl_to_tgsi.cpp:5144:38: error:

[Mesa-dev] [PATCH 2/2] glsl: Don't vectorize horizontal expressions.

2014-02-22 Thread Matt Turner
Cc: "10.1" Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75224 --- src/glsl/opt_vectorize.cpp | 15 +++ 1 file changed, 15 insertions(+) diff --git a/src/glsl/opt_vectorize.cpp b/src/glsl/opt_vectorize.cpp index dba303d..13faac0 100644 --- a/src/glsl/opt_vectorize.cpp +++ b/

[Mesa-dev] [PATCH 1/2] glsl: Add is_horizontal() method to ir_expression.

2014-02-22 Thread Matt Turner
Cc: "10.1" --- src/glsl/ir.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/glsl/ir.h b/src/glsl/ir.h index e27e30a..55ec5ff 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -1458,6 +1458,16 @@ public: } /** +* Return whether the expression operates on vectors

Re: [Mesa-dev] [PATCH 13/25] gallium: Introduce max_gl*version pipe-caps

2014-02-22 Thread Roland Scheidegger
- Original Message - > From: "Emil Velikov" > To: "Roland Scheidegger" , mesa-dev@lists.freedesktop.org > Cc: "emil l velikov" > Sent: Saturday, February 22, 2014 2:02:08 PM > Subject: Re: [Mesa-dev] [PATCH 13/25] gallium: Introduce max_gl*version > pipe-caps > > On 22/02/14 12:02, Ro

Re: [Mesa-dev] [RFC] ARB_stencil_texturing on Gen6/7

2014-02-22 Thread Matt Turner
On Sat, Feb 22, 2014 at 1:05 AM, Topi Pohjolainen wrote: > Topi Pohjolainen (27): > i965: Remove unused sampler key fields > i965: Mark sources for offset getters as constants > i965/vec4: Mark invariant members as constants in vec4_visitor > i965: Allow w-tiled miptree offsets to be resol

Re: [Mesa-dev] [PATCH 14/19] i965/fs: Add and use an fs_inst copy constructor.

2014-02-22 Thread Pohjolainen, Topi
On Sat, Feb 22, 2014 at 10:43:02PM +0200, Pohjolainen, Topi wrote: > On Thu, Feb 20, 2014 at 01:41:27PM -0800, Matt Turner wrote: > > Will get more complicated when fs_reg src becomes a pointer. > > --- > > src/mesa/drivers/dri/i965/brw_fs.cpp | 5 + > > src/mesa/drivers/dri/i965/brw_f

Re: [Mesa-dev] [PATCH 14/19] i965/fs: Add and use an fs_inst copy constructor.

2014-02-22 Thread Pohjolainen, Topi
On Thu, Feb 20, 2014 at 01:41:27PM -0800, Matt Turner wrote: > Will get more complicated when fs_reg src becomes a pointer. > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 5 + > src/mesa/drivers/dri/i965/brw_fs.h | 1 + > src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 3 +-- >

Re: [Mesa-dev] [PATCH 12/19] i965/fs: Pass fs_regs by constant reference where possible.

2014-02-22 Thread Matt Turner
On Sat, Feb 22, 2014 at 9:22 AM, Pohjolainen, Topi wrote: > On Thu, Feb 20, 2014 at 01:41:25PM -0800, Matt Turner wrote: >> void >> -fs_visitor::emit_lrp(fs_reg dst, fs_reg x, fs_reg y, fs_reg a) >> +fs_visitor::emit_lrp(const fs_reg &dst, const fs_reg &x, const fs_reg &y, >> +

Re: [Mesa-dev] [PATCH] i965: Validate (and resolve) all the bound textures.

2014-02-22 Thread Kenneth Graunke
On 02/21/2014 09:09 PM, Chris Forbes wrote: > BRW_MAX_TEX_UNIT is the static limit on the number of textures we > support per-stage, not in total. > > Core's `Unit` array is sized by MAX_COMBINED_TEXTURE_IMAGE_UNITS, which > is significantly larger, and across the various shader stages, up to > ct

Re: [Mesa-dev] [PATCH 15/19] i965/fs: Disable fs_inst assignment operator.

2014-02-22 Thread Pohjolainen, Topi
On Thu, Feb 20, 2014 at 01:41:28PM -0800, Matt Turner wrote: > The fs_reg src array is going to turn into a pointer and we'd rather not > consider the implications of shallow copying fs_insts. > --- > src/mesa/drivers/dri/i965/brw_fs.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/sr

Re: [Mesa-dev] [PATCH 16/19] i965/fs: Combine fs_inst constructors using default parameters.

2014-02-22 Thread Pohjolainen, Topi
On Thu, Feb 20, 2014 at 01:41:29PM -0800, Matt Turner wrote: > Wouldn't it be nice if case labels could be non-constant expressions. > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 77 > +--- > src/mesa/drivers/dri/i965/brw_fs.h | 10 ++--- > 2 files changed, 31 i

Re: [Mesa-dev] [PATCH 17/25] gallium: add GLX_MESA_query_renderer caps

2014-02-22 Thread Ilia Mirkin
On Fri, Feb 21, 2014 at 10:04 PM, Emil Velikov wrote: > Namely vendor/device id, accelerated and UMA, which will be used to describe > the underlying renderer. > > Signed-off-by: Emil Velikov > --- > src/gallium/docs/source/screen.rst | 8 > src/gallium/include/pipe/p_defines.h | 5 ++

Re: [Mesa-dev] [PATCH 22/25] gallium/nouveau: handle query_renderer caps

2014-02-22 Thread Ilia Mirkin
On Sat, Feb 22, 2014 at 8:25 AM, Emil Velikov wrote: > On 22/02/14 05:54, Ilia Mirkin wrote: >> On Fri, Feb 21, 2014 at 10:04 PM, Emil Velikov >> wrote: >>> Signed-off-by: Emil Velikov >>> --- >>> >>> IMHO we could easily rip out all the common stuff wrt PIPE_CAPs >>> handling and move it to no

[Mesa-dev] [Bug 75226] Dark rendering of War for the Overworld

2014-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75226 --- Comment #12 from Fredrik Höglund --- Created attachment 94581 --> https://bugs.freedesktop.org/attachment.cgi?id=94581&action=edit Use linear formats for TFP textures After restarting the compositor with the sRGB patches applied, I realize

Re: [Mesa-dev] [PATCH 07/25] dri/nouveau: add GLX_MESA_query_renderer support

2014-02-22 Thread Ilia Mirkin
On Sat, Feb 22, 2014 at 7:54 AM, Emil Velikov wrote: > On 22/02/14 05:46, Ilia Mirkin wrote: >> On Fri, Feb 21, 2014 at 10:03 PM, Emil Velikov >> wrote: >>> v2: nv04-2x cards support upto opengl 1.3. >> >> nv1x only has 1.2, iirc. i'll re-check. why does it matter though? >> version is computed

Re: [Mesa-dev] [PATCH 24/25] gallium/softpipe/llvmpipe: handle query_renderer caps

2014-02-22 Thread Alexander von Gluck IV
On Sat, 2014-02-22 at 15:33 +, Emil Velikov wrote: > On 22/02/14 13:52, Brian Paul wrote: > > On Fri, Feb 21, 2014 at 8:04 PM, Emil Velikov > > wrote: > >> + case PIPE_CAP_ACCELERATED: > >> + return 0; > >> + case PIPE_CAP_VIDEO_MEMORY: { > >> + /* XXX: Do we want to return the f

Re: [Mesa-dev] [PATCH] i965/fs: Drop the emit(fs_inst) overload.

2014-02-22 Thread Pohjolainen, Topi
On Fri, Feb 21, 2014 at 03:23:42PM -0800, Kenneth Graunke wrote: > Using this emit function implicitly creates three copies, which > is pointlessly inefficient. > > 1. Code creates the original instruction. > 2. Calling emit(fs_inst) copies it into the function. > 3. It then allocates a new fs_ins

[Mesa-dev] [Bug 75356] pipe_loader_sw.c:64: undefined reference to `xlib_create_sw_winsys'

2014-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75356 --- Comment #4 from Christian Prochaska --- (In reply to comment #3) > Created attachment 94574 [details] [review] > pipe-loader: wrap pipe_loader_sw_probe_xlib within HAVE_PIPE_LOADER_XLIB > > The patch description does not directly relate to

Re: [Mesa-dev] [PATCH 12/19] i965/fs: Pass fs_regs by constant reference where possible.

2014-02-22 Thread Pohjolainen, Topi
On Thu, Feb 20, 2014 at 01:41:25PM -0800, Matt Turner wrote: > These functions (modulo emit_lrp, necessitating the small fix-up) pass > these arguments by value unmodified to other functions. No point in > making an additional copy. > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 7 ---

[Mesa-dev] [Bug 75356] pipe_loader_sw.c:64: undefined reference to `xlib_create_sw_winsys'

2014-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75356 --- Comment #3 from Emil Velikov --- Created attachment 94574 --> https://bugs.freedesktop.org/attachment.cgi?id=94574&action=edit pipe-loader: wrap pipe_loader_sw_probe_xlib within HAVE_PIPE_LOADER_XLIB The patch description does not directly

[Mesa-dev] [Bug 75335] Use of uninitialized pointer in 'gallium_screen_create()'

2014-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75335 --- Comment #1 from Emil Velikov --- Created attachment 94573 --> https://bugs.freedesktop.org/attachment.cgi?id=94573&action=edit targets/gbm: exit gracefully if pipe_loader_drm_probe_fd is not available -- You are receiving this mail becaus

[Mesa-dev] [PATCH 3/3] configure: correctly report if we're building the sw/xlib winsys

2014-02-22 Thread Emil Velikov
While looking at bug 75356, I've noticed that the presence of x11 egl platform pulls in sw/xlib as "needed" but fails to report so at the end of configure. Signed-off-by: Emil Velikov --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index d42803c..

[Mesa-dev] [PATCH 1/3] targets/gbm: exit gracefully if pipe_loader_drm_probe_fd is not available

2014-02-22 Thread Emil Velikov
When one builds without gallium_drm_loader, the above function will not be available, thus we'll segfault in gallium_screen_create due to memory access violation. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75335 Signed-off-by: Emil Velikov --- src/gallium/targets/gbm/gbm.c | 7 --

[Mesa-dev] [PATCH 2/3] pipe-loader: wrap pipe_loader_sw_probe_xlib within HAVE_PIPE_LOADER_XLIB

2014-02-22 Thread Emil Velikov
The above function implies using the the xlib winsys, which has additional library dependencies that should not be forced. Make the software xlib pipe loader optional thus avoid all the dependency hell. A user that wishes to use the particular pipe-loader would need to set the following within con

Re: [Mesa-dev] [RFC] ARB_stencil_texturing on Gen6/7

2014-02-22 Thread Pohjolainen, Topi
On Sat, Feb 22, 2014 at 11:05:26AM +0200, Topi Pohjolainen wrote: > This series adda stencil texturing support for gen6 and gen7. It's tested > against regression on IVB and SNB. Both also pass the piglit tests we have > for fragment shaders with texture() and texelFetch(). And forgot to add that

Re: [Mesa-dev] [PATCH 24/25] gallium/softpipe/llvmpipe: handle query_renderer caps

2014-02-22 Thread Emil Velikov
On 22/02/14 15:33, Emil Velikov wrote: > On 22/02/14 13:52, Brian Paul wrote: >> On Fri, Feb 21, 2014 at 8:04 PM, Emil Velikov >> wrote: [snip] >>> --- a/src/gallium/drivers/llvmpipe/lp_screen.c >>> +++ b/src/gallium/drivers/llvmpipe/lp_screen.c >>> @@ -245,6 +245,31 @@ llvmpipe_get_param(struct p

Re: [Mesa-dev] [PATCH 24/25] gallium/softpipe/llvmpipe: handle query_renderer caps

2014-02-22 Thread Emil Velikov
On 22/02/14 13:52, Brian Paul wrote: > On Fri, Feb 21, 2014 at 8:04 PM, Emil Velikov wrote: > >> Both drivers report 0x as vendor/device id, and the maximum >> amount of system memory as video memory. We might want to reconsider >> the latter. >> >> Cc: Brian Paul >> Signed-off-by: Emil V

Re: [Mesa-dev] [PATCH 20/25] gallium/ilo: handle query_renderer caps

2014-02-22 Thread Emil Velikov
On 22/02/14 14:41, Chia-I Wu wrote: > On Sat, Feb 22, 2014 at 11:04 AM, Emil Velikov > wrote: >> Implementation is a verbatim copy from the classic driver. >> >> This introduces a driver dependency on libdrm-intel, as the winsys does not >> cache the aperture size of the device. >> >> This implem

Re: [Mesa-dev] [PATCH 01/25] glx/drisw: Move private structure declarations to a header file

2014-02-22 Thread Chia-I Wu
On Sat, Feb 22, 2014 at 11:03 AM, Emil Velikov wrote: > Signed-off-by: Emil Velikov > --- > src/glx/drisw_glx.c | 41 + > src/glx/drisw_priv.h | 64 > > 2 files changed, 65 insertions(+), 40 deletions(-) > cr

Re: [Mesa-dev] [PATCH 20/25] gallium/ilo: handle query_renderer caps

2014-02-22 Thread Chia-I Wu
On Sat, Feb 22, 2014 at 11:04 AM, Emil Velikov wrote: > Implementation is a verbatim copy from the classic driver. > > This introduces a driver dependency on libdrm-intel, as the winsys does not > cache the aperture size of the device. > > This implemetation duplicates the fd from intel_winsys to

Re: [Mesa-dev] [PATCH 24/25] gallium/softpipe/llvmpipe: handle query_renderer caps

2014-02-22 Thread Brian Paul
On Fri, Feb 21, 2014 at 8:04 PM, Emil Velikov wrote: > Both drivers report 0x as vendor/device id, and the maximum > amount of system memory as video memory. We might want to reconsider > the latter. > > Cc: Brian Paul > Signed-off-by: Emil Velikov > --- > src/gallium/drivers/llvmpipe/l

Re: [Mesa-dev] [RFC 08/27] i965/fs: Configure w-tiled stencil surfaces as y-tiled on gen6/7

2014-02-22 Thread Pohjolainen, Topi
On Sat, Feb 22, 2014 at 11:05:34AM +0200, Topi Pohjolainen wrote: > Signed-off-by: Topi Pohjolainen > --- > src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 28 > ++-- > 1 file changed, 26 insertions(+), 2 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_wm_surf

Re: [Mesa-dev] [PATCH 22/25] gallium/nouveau: handle query_renderer caps

2014-02-22 Thread Emil Velikov
On 22/02/14 05:54, Ilia Mirkin wrote: > On Fri, Feb 21, 2014 at 10:04 PM, Emil Velikov > wrote: >> Signed-off-by: Emil Velikov >> --- >> >> IMHO we could easily rip out all the common stuff wrt PIPE_CAPs >> handling and move it to nouveau, rather than duplicating it in >> each driver. >> >> I be

Re: [Mesa-dev] [PATCH 19/25] gallium/i915: handle query_renderer caps

2014-02-22 Thread Emil Velikov
On 22/02/14 03:33, Stéphane Marchesin wrote: > On Fri, Feb 21, 2014 at 7:04 PM, Emil Velikov wrote: > >> Implementation is a verbatim copy from the classic driver. >> >> This introduces a driver dependency on libdrm-intel, as the winsys does not >> cache the aperture size of the device. >> > > Us

Re: [Mesa-dev] [PATCH 13/25] gallium: Introduce max_gl*version pipe-caps

2014-02-22 Thread Emil Velikov
On 22/02/14 12:02, Roland Scheidegger wrote: > Am 22.02.2014 04:04, schrieb Emil Velikov: >> According to the GLX_MESA_query_renderer spec each driver should >> be able to report the version of each GL api they support before >> creating a context. >> >> Currently both classic mesa and gallium eval

Re: [Mesa-dev] [PATCH 07/25] dri/nouveau: add GLX_MESA_query_renderer support

2014-02-22 Thread Emil Velikov
On 22/02/14 05:46, Ilia Mirkin wrote: > On Fri, Feb 21, 2014 at 10:03 PM, Emil Velikov > wrote: >> v2: nv04-2x cards support upto opengl 1.3. > > nv1x only has 1.2, iirc. i'll re-check. why does it matter though? > version is computed based on extension availability... > Indeed, nv2x are capabl

Re: [Mesa-dev] [PATCH 24/25] gallium/softpipe/llvmpipe: handle query_renderer caps

2014-02-22 Thread Roland Scheidegger
Am 22.02.2014 04:04, schrieb Emil Velikov: > Both drivers report 0x as vendor/device id, and the maximum > amount of system memory as video memory. We might want to reconsider > the latter. > > Cc: Brian Paul > Signed-off-by: Emil Velikov > --- > src/gallium/drivers/llvmpipe/lp_screen.c

Re: [Mesa-dev] [PATCH 17/25] gallium: add GLX_MESA_query_renderer caps

2014-02-22 Thread Roland Scheidegger
Am 22.02.2014 04:04, schrieb Emil Velikov: > Namely vendor/device id, accelerated and UMA, which will be used to describe > the underlying renderer. > > Signed-off-by: Emil Velikov > --- > src/gallium/docs/source/screen.rst | 8 > src/gallium/include/pipe/p_defines.h | 5 + > 2 fi

Re: [Mesa-dev] [PATCH 13/25] gallium: Introduce max_gl*version pipe-caps

2014-02-22 Thread Roland Scheidegger
Am 22.02.2014 04:04, schrieb Emil Velikov: > According to the GLX_MESA_query_renderer spec each driver should > be able to report the version of each GL api they support before > creating a context. > > Currently both classic mesa and gallium evaluate the version post > context creation and while

Re: [Mesa-dev] [RFC 06/27] i965/wm: Refactor resolving of texture parameters

2014-02-22 Thread Chris Forbes
I'd call the new structure just brw_surface. This stuff hasn't been specific to the WM for as long as we've supported vertex textures. -- Chris On Sat, Feb 22, 2014 at 10:05 PM, Topi Pohjolainen wrote: > Signed-off-by: Topi Pohjolainen > --- > src/mesa/drivers/dri/i965/brw_state.h

[Mesa-dev] [RFC 09/27] i965: Merge initialisation of backend_visitor

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 9 ++--- src/mesa/drivers/dri/i965/brw_shader.cpp | 12 src/mesa/drivers/dri/i965/brw_shader.h | 7 +++ src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 9 ++--- 4 files

[Mesa-dev] [RFC 22/27] i965/fs: Add generator support for fetching texture dimensions

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_defines.h| 2 ++ src/mesa/drivers/dri/i965/brw_fs.cpp | 1 + src/mesa/drivers/dri/i965/brw_fs.h | 3 +++ src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 33 ++ src/mesa/driv

[Mesa-dev] [RFC 20/27] i965/blorp: Use fs_emitter

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_blorp_blit.cpp| 340 src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp | 28 +- src/mesa/drivers/dri/i965/brw_blorp_blit_eu.h | 110 +--- 3 files changed, 189 insertions(+), 289 deletions(-) diff

[Mesa-dev] [RFC 11/27] i965: Mark invariants in backend_visitor as constants

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_shader.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_shader.h b/src/mesa/drivers/dri/i965/brw_shader.h index 4e41c84..e718197 100644 --- a/src/mesa/drivers/dri/i96

[Mesa-dev] [RFC 25/27] i965/fs: Emit coordinate translation from W to Y-tiling

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_fs.h | 2 + src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 69 2 files changed, 71 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index 2

[Mesa-dev] [RFC 21/27] i965/blorp: Refactor w-tiling to y-tiling translation

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_blorp_blit.cpp | 23 +- src/mesa/drivers/dri/i965/brw_fs.h | 7 ++ src/mesa/drivers/dri/i965/brw_fs_emitter.cpp | 110 +++ 3 files changed, 118 insertions(+), 22 deletions(-) diff --git a/s

[Mesa-dev] [RFC 14/27] i965: Merge max_grf between stage compilers

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_fs.h| 2 -- src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | 2 +- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 1 - src/mesa/drivers/dri/i965/brw_shader.cpp | 3 ++- src/mesa/drivers/dri/i965/brw

[Mesa-dev] [RFC 19/27] i965/fs: Move emission of ALUs into fs_emitter

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_fs.cpp | 89 src/mesa/drivers/dri/i965/brw_fs.h | 63 ++-- src/mesa/drivers/dri/i965/brw_fs_emitter.cpp | 88 +++ 3 files changed, 120 insertion

[Mesa-dev] [RFC 24/27] i965/fs: Add helpers for de/normalizing values

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_fs.h | 6 + src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 39 2 files changed, 45 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h ind

[Mesa-dev] [RFC 15/27] i965/vec4: Use unsigned instead of signed for visitor uniform count

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_vec4.cpp | 12 ++-- src/mesa/drivers/dri/i965/brw_vec4.h | 2 +- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 2 +- src/mesa/drivers/dri/i965/brw_vec4_vp.cpp | 2 +- 4 files changed, 9 insertio

[Mesa-dev] [RFC 26/27] i965/fs: Recompile when switching to/from stencil indexing

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_program.h | 7 +++ src/mesa/drivers/dri/i965/brw_wm.c | 7 +++ 2 files changed, 14 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_program.h b/src/mesa/drivers/dri/i965/brw_program.h index 6aa0ac1..fc00517 1

[Mesa-dev] [RFC 12/27] i965: Split emitter out of backend_visitor

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_cfg.cpp| 8 src/mesa/drivers/dri/i965/brw_cfg.h | 4 ++-- src/mesa/drivers/dri/i965/brw_dead_control_flow.cpp | 6 +++--- src/mesa/drivers/dri/i965/brw_dead_control_flow.h| 2 +- s

[Mesa-dev] [RFC 23/27] i965/fs: Add helper for emitting plain texture resinfo messages

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_fs.h | 2 ++ src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 21 + 2 files changed, 23 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index b4b146a

[Mesa-dev] [RFC 05/27] i965/wm: Use resolved miptree consistently in surface setup

2014-02-22 Thread Topi Pohjolainen
Most of the logic refers to the local variable 'mt' directly but a few cases use 'intelObj->mt' instead. These are the same for now but will be different once stencil miptree gets used. Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 12 ++-- src/m

[Mesa-dev] [RFC 13/27] i965: Merge memory context allocation for shader visitors

2014-02-22 Thread Topi Pohjolainen
Such like fs_visitor the dynamic data generated by vec4_visitor does not have lifecycle longer than the visitor itself. Hence it can be taken cared of by the common base. Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 2 -- src/mesa/drivers/dri/i965/brw_s

[Mesa-dev] [RFC 18/27] i965/fs: Split LIR emission ouf of ir-visitor

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/Makefile.sources | 1 + src/mesa/drivers/dri/i965/brw_fs.cpp | 44 -- src/mesa/drivers/dri/i965/brw_fs.h | 55 - src/mesa/drivers/dri/i965/brw_fs_emitter.cpp | 119 +++

[Mesa-dev] [RFC 16/27] i965: Merge common members of visitors

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_fs.h | 20 src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 19 --- src/mesa/drivers/dri/i965/brw_shader.cpp | 18 +- src/mesa/drivers/dri/i965/brw_shader.h

[Mesa-dev] [RFC 27/27] i965: Enable ARB_stencil_texturing on Gen6.

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/intel_extensions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c index 5094c2b..c7eef830 100644 --- a/src/mesa/drivers/d

[Mesa-dev] [RFC 08/27] i965/fs: Configure w-tiled stencil surfaces as y-tiled on gen6/7

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index 6f23cec..2e

[Mesa-dev] [RFC 10/27] i965: Merge resolving of shader program source

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 8 ++-- src/mesa/drivers/dri/i965/brw_shader.cpp | 5 - src/mesa/drivers/dri/i965/brw_shader.h| 3 ++- src/mesa/drivers/dri/i965/brw_vec4.cpp

[Mesa-dev] [RFC 02/27] i965: Mark sources for offset getters as constants

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 6 +++--- src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 4 ++-- src/mesa/drivers/dri/i965/intel_regions.c | 4 ++-- src/mesa/drivers/dri/i965/intel_regions.h | 4 ++-- 4 files changed, 9 insertions(+), 9

[Mesa-dev] [RFC 06/27] i965/wm: Refactor resolving of texture parameters

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_state.h | 16 src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 49 ++- src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 27 ++--- 3 files changed, 67 insertions(+), 25 deletion

[Mesa-dev] [RFC 01/27] i965: Remove unused sampler key fields

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_program.h | 6 -- src/mesa/drivers/dri/i965/brw_wm.c | 10 -- 2 files changed, 16 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_program.h b/src/mesa/drivers/dri/i965/brw_program.h index 59f628b..6aa0ac

[Mesa-dev] [RFC 07/27] i965/wm: Introduce support for texture surface x/y-tile offsets

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_state.h | 7 +++ src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 13 - src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 4 +++- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/sr

[Mesa-dev] [RFC 17/27] i965: Merge fail() for ir visitors

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_fs.cpp | 23 --- src/mesa/drivers/dri/i965/brw_fs.h | 1 - src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 2 +- src/mesa/drivers/dri/i965/brw_shader.cpp | 31 -

[Mesa-dev] [RFC 03/27] i965/vec4: Mark invariant members as constants in vec4_visitor

2014-02-22 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_vec4.h | 6 +++--- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 8 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h i

[Mesa-dev] [RFC 04/27] i965: Allow w-tiled miptree offsets to be resolved as y-tiled directly

2014-02-22 Thread Topi Pohjolainen
This is not utilised yet but will be needed when W-tiled stencil is sampled as Y-tiled. Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/intel_fbo.h | 2 +- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 11 +-- src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 1 +

[Mesa-dev] [RFC] ARB_stencil_texturing on Gen6/7

2014-02-22 Thread Topi Pohjolainen
This series adda stencil texturing support for gen6 and gen7. It's tested against regression on IVB and SNB. Both also pass the piglit tests we have for fragment shaders with texture() and texelFetch(). First three patches are just general cleanups/improvements I found along the way. Patches 4-7

[Mesa-dev] [Bug 75356] pipe_loader_sw.c:64: undefined reference to `xlib_create_sw_winsys'

2014-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75356 Vinson Lee changed: What|Removed |Added CC||ja...@vmware.com --- Comment #2 from Vinson

[Mesa-dev] [Bug 75356] pipe_loader_sw.c:64: undefined reference to `xlib_create_sw_winsys'

2014-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75356 --- Comment #1 from Vinson Lee --- Build error can be produced with these steps. $ ./autogen.sh --disable-dri3 --enable-gallium-tests --with-dri-drivers= --with-gallium-drivers=swrast $ make -- You are receiving this mail because: You are the

[Mesa-dev] [Bug 75356] New: pipe_loader_sw.c:64: undefined reference to `xlib_create_sw_winsys'

2014-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75356 Priority: medium Bug ID: 75356 Keywords: regression CC: emil.l.veli...@gmail.com Assignee: mesa-dev@lists.freedesktop.org Summary: pipe_loader_sw.c:64: undefined reference to