Re: [Mesa-dev] [PATCH] Allow texture2DProjLod and textureCubeLod with Gles.

2014-09-26 Thread Matt Turner
On Fri, Sep 26, 2014 at 7:44 PM, Kalyan Kondapally wrote: > According to GLES (i.e. 1.0 and above) spec textureCubeLod and > texture2DProjLod are built in functions. We seem to disable support > for these functions with GLES. This patch enables the support. > > Signed-off-by: Kalyan Kondapally >

[Mesa-dev] [PATCH] Allow texture2DProjLod and textureCubeLod with Gles.

2014-09-26 Thread Kalyan Kondapally
According to GLES (i.e. 1.0 and above) spec textureCubeLod and texture2DProjLod are built in functions. We seem to disable support for these functions with GLES. This patch enables the support. Signed-off-by: Kalyan Kondapally Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84355 --- src/

[Mesa-dev] [PATCH 1/3] glsl: add arrays of arrays support to without_array function

2014-09-26 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/glsl/glsl_types.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/glsl/glsl_types.h b/src/glsl/glsl_types.h index eeb14c2..f1d578e 100644 --- a/src/glsl/glsl_types.h +++ b/src/glsl/glsl_types.h @@ -505,7 +505,12 @@ struct glsl_ty

[Mesa-dev] [PATCH 3/3] glsl: simplify varying lowering check

2014-09-26 Thread Timothy Arceri
This adds support for arrays of arrays and simplifies the check for gs and ts. Signed-off-by: Timothy Arceri --- src/glsl/lower_packed_varyings.cpp | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/glsl/lower_packed_varyings.cpp b/src/glsl/lower_packed_varyings.cpp

[Mesa-dev] [PATCH 2/3] glsl: replace while loop with without_array function

2014-09-26 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/glsl/ast_to_hir.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 5ec1614..1c1815b 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -3560,9 +3560,7 @@ ast_de

[Mesa-dev] [PATCH] i965/compaction: Avoid (unexpected) unsigned division.

2014-09-26 Thread Matt Turner
... which leads to incorrect results on 32-bit x86. Reported-by: Mark Janes --- I tried writing up a nice commit message that explained what was going on and why this worked on 64-bit, but then I realized that it was taking orders of magnitude longer than the fix itself and probably no one would

Re: [Mesa-dev] [PATCH 3.5/5] i965: Use ~0ull when flagging all BRW_NEW_* dirty flags.

2014-09-26 Thread Matt Turner
On Fri, Sep 26, 2014 at 4:09 PM, Kenneth Graunke wrote: > ~0 is 0x, which only covers the first 32 bits. We need all 64. > > Signed-off-by: Kenneth Graunke > --- > src/mesa/drivers/dri/i965/brw_blorp.cpp | 2 +- > src/mesa/drivers/dri/i965/brw_state_cache.c | 2 +- > src/mesa/driv

Re: [Mesa-dev] [PATCH 1/5] i965: Delete CACHE_NEW_BLORP_CONST_COLOR_PROG.

2014-09-26 Thread Ian Romanick
Series is Reviewed-by: Ian Romanick On 09/26/2014 02:53 PM, Kenneth Graunke wrote: > Unused since krh rewrote fast clears to use meta. > > Signed-off-by: Kenneth Graunke > --- > src/mesa/drivers/dri/i965/brw_context.h | 2 -- > src/mesa/drivers/dri/i965/brw_state_upload.c | 1 - > 2 file

Re: [Mesa-dev] [PATCH 1/2] i965: Drop CACHE_NEW_VS_PROG from the gen7_sf_state atom.

2014-09-26 Thread Ian Romanick
Series is Reviewed-by: Ian Romanick On 09/26/2014 03:13 PM, Kenneth Graunke wrote: > I believe when I wrote this code, gen6_sf_state used CACHE_NEW_VS_PROG, > which has since been replaced by BRW_NEW_VUE_MAP_GEOM_OUT. It's not > needed here anyway - only SBE needs it. Just a copy and paste mis

Re: [Mesa-dev] [PATCH] i965/fs: Properly calculate the number of instructions in calculate_register_pressure

2014-09-26 Thread Matt Turner
On Fri, Sep 26, 2014 at 4:09 PM, Jason Ekstrand wrote: > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp > b/src/mesa/drivers/dri/i965/brw_fs.cpp > index b9bd94c..97b39e1 100644 > --- a/sr

Re: [Mesa-dev] [PATCH] i965/fs: Properly calculate the number of instructions in calculate_register_pressure

2014-09-26 Thread Ilia Mirkin
On Fri, Sep 26, 2014 at 7:09 PM, Jason Ekstrand wrote: > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp > b/src/mesa/drivers/dri/i965/brw_fs.cpp > index b9bd94c..97b39e1 100644 > --- a/sr

[Mesa-dev] [PATCH] i965/fs: Properly calculate the number of instructions in calculate_register_pressure

2014-09-26 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index b9bd94c..97b39e1 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_

[Mesa-dev] [PATCH 3.5/5] i965: Use ~0ull when flagging all BRW_NEW_* dirty flags.

2014-09-26 Thread Kenneth Graunke
~0 is 0x, which only covers the first 32 bits. We need all 64. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_blorp.cpp | 2 +- src/mesa/drivers/dri/i965/brw_state_cache.c | 2 +- src/mesa/drivers/dri/i965/brw_state_upload.c | 4 ++-- 3 files changed, 4 insertion

[Mesa-dev] [PATCH v2 3/5] i965: Fix INTEL_DEBUG=state to work with 64-bit dirty bits.

2014-09-26 Thread Kenneth Graunke
This will keep INTEL_DEBUG=state working when we add BRW_NEW_* bits beyond 1 << 31. We missed doing this when widening the driver flags from uint32_t to uint64_t. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_state_upload.c | 23 +++ 1 file changed, 7 inse

Re: [Mesa-dev] [PATCH 2/2] mesa: Avoid flagging _NEW_VIEWPORT on redundant viewport updates.

2014-09-26 Thread Brian Paul
On 09/26/2014 04:13 PM, Kenneth Graunke wrote: Cuts the number of i965 color calculator viewport uploads by 100x (11017983 -> 113385) in 'x11perf -gc' with Glamor in Xephyr. Signed-off-by: Kenneth Graunke --- src/mesa/main/viewport.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/

Re: [Mesa-dev] [PATCH 1/4] radeonsi/compute: directly emit CONTEXT_CONTROL

2014-09-26 Thread Marek Olšák
On Fri, Sep 26, 2014 at 3:04 PM, Alex Deucher wrote: > On Thu, Sep 25, 2014 at 3:02 PM, Tom Stellard wrote: >> On Mon, Sep 22, 2014 at 09:48:43PM +0200, Marek Olšák wrote: >>> No, we cannot detect compute-only contexts yet. We need to add a new >>> parameter to pipe_context::context_create which

Re: [Mesa-dev] [PATCH] i965/fs: Recalculate cfg in emit_curb_setup

2014-09-26 Thread Matt Turner
On Fri, Sep 26, 2014 at 2:59 PM, Jason Ekstrand wrote: > Signed-off-by: Jason Ekstrand > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp > b/src/mesa/drivers/dri/i965/brw_fs.cpp > index ffe8ba8..95af5ab 1

[Mesa-dev] [PATCH 1/2] i965: Drop CACHE_NEW_VS_PROG from the gen7_sf_state atom.

2014-09-26 Thread Kenneth Graunke
I believe when I wrote this code, gen6_sf_state used CACHE_NEW_VS_PROG, which has since been replaced by BRW_NEW_VUE_MAP_GEOM_OUT. It's not needed here anyway - only SBE needs it. Just a copy and paste mistake. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/gen7_sf_state.c | 2 +-

[Mesa-dev] [PATCH 2/2] mesa: Avoid flagging _NEW_VIEWPORT on redundant viewport updates.

2014-09-26 Thread Kenneth Graunke
Cuts the number of i965 color calculator viewport uploads by 100x (11017983 -> 113385) in 'x11perf -gc' with Glamor in Xephyr. Signed-off-by: Kenneth Graunke --- src/mesa/main/viewport.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/main/viewport.c b/src/mesa/main/viewport.c

Re: [Mesa-dev] [PATCH 4/4] i965: Use unsynchronized maps for the program cache on LLC platforms.

2014-09-26 Thread Kristian Høgsberg
On Fri, Sep 26, 2014 at 2:21 PM, Kenneth Graunke wrote: > On Friday, September 26, 2014 09:22:31 AM Kristian Høgsberg wrote: >> On Fri, Aug 29, 2014 at 11:10:50PM -0700, Kenneth Graunke wrote: >> > There's no reason to stall on pwrite - the CPU always appends to the >> > buffer and never modifies

[Mesa-dev] [PATCH] i965/fs: Recalculate cfg in emit_curb_setup

2014-09-26 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/brw_fs.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index ffe8ba8..95af5ab 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers

[Mesa-dev] [PATCH 2/5] i965: Update dirty_bit_map::bit to be a uint64_t.

2014-09-26 Thread Kenneth Graunke
This will keep INTEL_DEBUG=state working when we add BRW_NEW_* bits beyond 1 << 31. We missed doing this when widening the driver flags from uint32_t to uint64_t. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_state_upload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletio

[Mesa-dev] [PATCH 4/5] i965: Add missing /* BRW_NEW_FRAGMENT_PROGRAM */ comments.

2014-09-26 Thread Kenneth Graunke
I had to dig a bit to figure out why this was necessary. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/gen6_sf_state.c | 5 +++-- src/mesa/drivers/dri/i965/gen7_sf_state.c | 4 ++-- src/mesa/drivers/dri/i965/gen8_sf_state.c | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-

[Mesa-dev] [PATCH 1/5] i965: Delete CACHE_NEW_BLORP_CONST_COLOR_PROG.

2014-09-26 Thread Kenneth Graunke
Unused since krh rewrote fast clears to use meta. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_context.h | 2 -- src/mesa/drivers/dri/i965/brw_state_upload.c | 1 - 2 files changed, 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/

[Mesa-dev] [PATCH 5/5] i965: Drop brwBindProgram driver hook.

2014-09-26 Thread Kenneth Graunke
This function flagged BRW_NEW_*_PROGRAM When ctx->{Vertex,Geometry,Fragment}Program._Current changes, core Mesa calls the BindProgram driver hook, which flagged BRW_NEW_*_PROGRAM. However, brw_upload_state also checks for that changing, sets the same flags, and also updates brw->fragment_program

[Mesa-dev] [PATCH 3/5] i965: Use "1ull" instead of "1" in BRW_NEW_* defines.

2014-09-26 Thread Kenneth Graunke
Now that the bitfield is a uint64_t, we should use 1ull. Currently, we only have 32 entries, so 1 works fine, but it's not future-proof. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_context.h | 64 - 1 file changed, 32 insertions(+), 32 deleti

Re: [Mesa-dev] [PATCH 2/2] Remove Bluegene/L wrappers

2014-09-26 Thread Ian Romanick
On 09/26/2014 02:14 PM, Emil Velikov wrote: > Added back in 2009, with osmesa/GLU in mind. Unlikely to be working > any more since the removal of the static makefiles. > > Cc: Brian Paul > Signed-off-by: Emil Velikov Reviewed-by: Ian Romanick In dlopen.h, the code will be the same... the defi

Re: [Mesa-dev] [PATCH 1/2] mesa: remove last DJGPP remains

2014-09-26 Thread Ian Romanick
And I was just going to start working on the Mesa software rasterizer for DOS. Oh well. Reviewed-by: Ian Romanick On 09/26/2014 02:14 PM, Emil Velikov wrote: > Signed-off-by: Emil Velikov > --- > src/mapi/glapi/gen/gl_x86_asm.py | 2 +- > src/mesa/main/dlopen.h| 7 --- > src/

Re: [Mesa-dev] [PATCH 3/4] i965: Issue performance warnings for program cache related stalls.

2014-09-26 Thread Kenneth Graunke
On Friday, September 26, 2014 04:41:14 PM Chris Wilson wrote: > On Fri, Sep 26, 2014 at 08:36:39AM -0700, Kristian Høgsberg wrote: > > On Fri, Aug 29, 2014 at 11:10:49PM -0700, Kenneth Graunke wrote: > > > We don't really want extra buffer copying or stalls when mapping, > > > so it'd be nice to kn

Re: [Mesa-dev] [PATCH 4/5] i965/fs: Don't invalidate live intervals in saturate propagation.

2014-09-26 Thread Jason Ekstrand
Patches 2-4 are Reviewed-by: Jason Ekstrand I'll have to think more about patch 1 On Mon, Sep 8, 2014 at 12:21 PM, Matt Turner wrote: > --- > src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/src/mesa/drivers/d

Re: [Mesa-dev] [PATCH 4/4] i965: Use unsynchronized maps for the program cache on LLC platforms.

2014-09-26 Thread Kenneth Graunke
On Friday, September 26, 2014 09:22:31 AM Kristian Høgsberg wrote: > On Fri, Aug 29, 2014 at 11:10:50PM -0700, Kenneth Graunke wrote: > > There's no reason to stall on pwrite - the CPU always appends to the > > buffer and never modifies existing contents, and the GPU never writes > > it. Further,

[Mesa-dev] [PATCH 2/2] Remove Bluegene/L wrappers

2014-09-26 Thread Emil Velikov
Added back in 2009, with osmesa/GLU in mind. Unlikely to be working any more since the removal of the static makefiles. Cc: Brian Paul Signed-off-by: Emil Velikov --- src/mesa/main/compiler.h | 2 +- src/mesa/main/dlopen.h | 12 +++- 2 files changed, 4 insertions(+), 10 deletions(-)

[Mesa-dev] [PATCH 1/2] mesa: remove last DJGPP remains

2014-09-26 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/mapi/glapi/gen/gl_x86_asm.py | 2 +- src/mesa/main/dlopen.h| 7 --- src/mesa/main/texcompress_s3tc.c | 2 -- src/mesa/x86/assyntax.h | 6 +++--- src/mesa/x86/read_rgba_span_x86.S | 4 ++-- 5 files changed, 6 insertions(+), 15 deletio

[Mesa-dev] [PATCH 2/3] driconf: Update Spanish translation

2014-09-26 Thread Alex Henrie
--- src/mesa/drivers/dri/common/xmlpool/es.po | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/common/xmlpool/es.po b/src/mesa/drivers/dri/common/xmlpool/es.po index 1733b76..a68c329 100644 --- a/src/mesa/drivers/dri/common/xmlpool/es.po +++ b/sr

[Mesa-dev] [PATCH 1/3] driconf: Synchronize po files

2014-09-26 Thread Alex Henrie
--- src/mesa/drivers/dri/common/xmlpool/ca.po | 119 -- src/mesa/drivers/dri/common/xmlpool/de.po | 118 - src/mesa/drivers/dri/common/xmlpool/es.po | 118 - src/mesa/drivers/dri/common/xmlpool/fr.po | 118

[Mesa-dev] [PATCH 3/3] driconf: Correct and update Catalan translation

2014-09-26 Thread Alex Henrie
--- src/mesa/drivers/dri/common/xmlpool/ca.po | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mesa/drivers/dri/common/xmlpool/ca.po b/src/mesa/drivers/dri/common/xmlpool/ca.po index 1db9703..23e9f42 100644 --- a/src/mesa/drivers/dri/common/xmlpool/ca.po ++

Re: [Mesa-dev] [PATCH v2 6/6] st/va: implement vlVa(Query|Create|Get|Put|Destroy)Image

2014-09-26 Thread Ilia Mirkin
On Fri, Sep 26, 2014 at 4:30 PM, Leo Liu wrote: > This patch implements functions for images support, > which basically supports copy data between video > surface and user buffers, in this case supports > SW decode, and other video output > > v2: fix buffer size for odd-sized image case > expo

[Mesa-dev] [PATCH v3 2/6] st/va: skeleton VAAPI state tracker

2014-09-26 Thread Leo Liu
From: Christian König This patch adds a skeleton VA-API state tracker, which is filled with live in the subsequent patches. v2: fixes in configure.ac and va state_tracker Makefile.am v3: configure.ac: generate a marco for link to xcb auto-dectecting VA version rebase with up

[Mesa-dev] [PATCH v2 6/6] st/va: implement vlVa(Query|Create|Get|Put|Destroy)Image

2014-09-26 Thread Leo Liu
This patch implements functions for images support, which basically supports copy data between video surface and user buffers, in this case supports SW decode, and other video output v2: fix buffer size for odd-sized image case expose I420 format as well Signed-off-by: Leo Liu --- src/galli

[Mesa-dev] [PATCH v2 3/6] st/va: implement vlVa(Create|Destroy|Query|Get)Config

2014-09-26 Thread Leo Liu
From: Christian König This patch is for application to query configuration, such as profiles, entrypoints, and attributes v2: fix missing profile with query Signed-off-by: Michael Varga Signed-off-by: Christian König Signed-off-by: Leo Liu --- src/gallium/state_trackers/va/config.c | 78

Re: [Mesa-dev] [PATCH 0.1/2] mesa: Add new variables in gl_context to store sample number layout

2014-09-26 Thread Anuj Phogat
On Fri, Sep 26, 2014 at 12:50 PM, Jordan Justen wrote: > On Tue, Sep 23, 2014 at 5:38 PM, Anuj Phogat > wrote: > > Variables are used in later patches to implement > > EXT_framebuffer_multisample_blit_scaled extension. > > > > Signed-off-by: Anuj Phogat > > --- > > src/mesa/main/mtypes.h | 9 +

Re: [Mesa-dev] [PATCH 0.1/2] mesa: Add new variables in gl_context to store sample number layout

2014-09-26 Thread Jordan Justen
On Tue, Sep 23, 2014 at 5:38 PM, Anuj Phogat wrote: > Variables are used in later patches to implement > EXT_framebuffer_multisample_blit_scaled extension. > > Signed-off-by: Anuj Phogat > --- > src/mesa/main/mtypes.h | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/src/mesa/mai

[Mesa-dev] [PATCH v2 17/41] SQUASH: i965/fs: Properly handle widths in copy propagation

2014-09-26 Thread Jason Ekstrand
v2: Account for register ranges due to the rebase on top of the patch to propagate subsets of copied registers --- .../drivers/dri/i965/brw_fs_copy_propagation.cpp | 40 ++ 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_copy_

[Mesa-dev] [PATCH v2 41/41] SQUASH: i965/fs: Force a high register for the final FB write

2014-09-26 Thread Jason Ekstrand
v2: Renamed the array for the range mappings and added a comment. --- src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | 34 ++- src/mesa/drivers/dri/i965/intel_screen.h | 10 +++ 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/

[Mesa-dev] [PATCH 39.1/41] i965/fs: Constant propagate into LOAD_PAYLOAD

2014-09-26 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp index 7dfed6e..6b7ec79 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_copy_pro

[Mesa-dev] [PATCH 45/63] i965/fs: Make fs_reg::effective_width take fs_inst* instead of fs_visitor*

2014-09-26 Thread Jason Ekstrand
Now that we have execution sizes, we can use that instead of the dispatch width. This way it also works for 8-wide instructions in SIMD16. --- src/mesa/drivers/dri/i965/brw_fs.cpp | 10 +- src/mesa/drivers/dri/i965/brw_fs.h| 4 ++-- src/mesa/drivers/d

[Mesa-dev] [PATCH 14/12] i965/fs: Copy propagate partial reads.

2014-09-26 Thread Jason Ekstrand
This commit reworks copy propagation a bit to support propagating the copying of partial registers. This comes up every time we have pull constants because we do a pull constant read immediately followed by a move to splat the one component of the out to 8 or 16-wide. This allows us to eliminate

[Mesa-dev] [PATCH 06.5/41] SQUAHS: i965/fs: Always 2-align registers SIMD16 for gen <= 5

2014-09-26 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | 61 ++- 1 file changed, 48 insertions(+), 13 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp index 567f8e2..8d96906 100644 --- a/src/mesa/dr

[Mesa-dev] [PATCH 10.5/41] SQUASH: i965/fs: Properly set writemasks in LOAD_PAYLOAD

2014-09-26 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 56 +++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 444cc32..4d97594 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp ++

[Mesa-dev] [PATCH v2 40/41] i965/fs: Use the GRF for FB writes on gen >= 7

2014-09-26 Thread Jason Ekstrand
On gen 7, the MRF was removed and we gained the ability to do send instructions directly from the GRF. This commit enables that functinoality for FB writes. v2: Make handling of components more sane. --- src/mesa/drivers/dri/i965/brw_fs.cpp | 4 + src/mesa/drivers/dri/i965/brw_fs.h

[Mesa-dev] [PATCH 39.2/41] i965/fs: Handle COMPR4 in LOAD_PAYLOAD

2014-09-26 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 15 +++ src/mesa/drivers/dri/i965/brw_fs.h | 22 +- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 97b21e3..b43032b 100644

[Mesa-dev] [PATCH 42/41] i965: Fix widths on gen5 math instructions.

2014-09-26 Thread Jason Ekstrand
This commit uses a 16-wide MRF instead of a hardware register when setting up math instructions and properly sets the base_mrf on the second emitted instruction. --- src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +- src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 2 +- 2 files changed, 2 ins

Re: [Mesa-dev] [PATCH v2] glsl: Optimize min/max expression trees

2014-09-26 Thread Connor Abbott
On Fri, Sep 26, 2014 at 9:02 AM, Iago Toral Quiroga wrote: > Original patch by Petri Latvala : > > Add an optimization pass that drops min/max expression operands that > can be proven to not contribute to the final result. The algorithm is > similar to alpha-beta pruning on a minmax search, from t

Re: [Mesa-dev] [PATCH 2/4] i965: Issue performance warnings on MapBufferRange stalls.

2014-09-26 Thread Kristian Høgsberg
On Fri, Sep 26, 2014 at 12:38 AM, Kenneth Graunke wrote: > On Friday, August 29, 2014 11:10:48 PM Kenneth Graunke wrote: >> This is easy: we just need to use brw_map_bo instead of mapping it >> directly. >> >> Signed-off-by: Kenneth Graunke >> --- >> src/mesa/drivers/dri/i965/intel_buffer_object

Re: [Mesa-dev] [PATCH 4/4] i965: Use unsynchronized maps for the program cache on LLC platforms.

2014-09-26 Thread Kristian Høgsberg
On Fri, Aug 29, 2014 at 11:10:50PM -0700, Kenneth Graunke wrote: > There's no reason to stall on pwrite - the CPU always appends to the > buffer and never modifies existing contents, and the GPU never writes > it. Further, the CPU always appends new data before submitting a batch > that requires i

[Mesa-dev] [PATCH] glsl: improve accuracy of atan()

2014-09-26 Thread Erik Faye-Lund
Our current atan()-approximation is pretty inaccurate at 1.0, so let's try to improve the situation by doing a direct approximation without going through atan. This new implementation uses an 11th degree polynomial to approximate atan in the [-1..1] range, and the following identitiy to reduce the

Re: [Mesa-dev] [PATCH 3/4] i965: Issue performance warnings for program cache related stalls.

2014-09-26 Thread Chris Wilson
On Fri, Sep 26, 2014 at 08:36:39AM -0700, Kristian Høgsberg wrote: > On Fri, Aug 29, 2014 at 11:10:49PM -0700, Kenneth Graunke wrote: > > We don't really want extra buffer copying or stalls when mapping, > > so it'd be nice to know when it's happening. > > > > Signed-off-by: Kenneth Graunke > >

Re: [Mesa-dev] [PATCH 3/4] i965: Issue performance warnings for program cache related stalls.

2014-09-26 Thread Kristian Høgsberg
On Fri, Aug 29, 2014 at 11:10:49PM -0700, Kenneth Graunke wrote: > We don't really want extra buffer copying or stalls when mapping, > so it'd be nice to know when it's happening. > > Signed-off-by: Kenneth Graunke Reviewed-by: Kristian Høgsberg > --- > src/mesa/drivers/dri/i965/brw_state_cac

Re: [Mesa-dev] [PATCH 2/4] i965: Issue performance warnings on MapBufferRange stalls.

2014-09-26 Thread Kristian Høgsberg
On Fri, Aug 29, 2014 at 11:10:48PM -0700, Kenneth Graunke wrote: > This is easy: we just need to use brw_map_bo instead of mapping it > directly. > > Signed-off-by: Kenneth Graunke Reviwed-by: Kristian Høgsberg > --- > src/mesa/drivers/dri/i965/intel_buffer_objects.c | 7 --- > 1 file cha

Re: [Mesa-dev] Mesa (master): glsl: Make sure fields after small structs have correct padding

2014-09-26 Thread Ian Romanick
Okay... I screwed up this morning. I pushed a set of four patches without adding Jordan's Reviewed-by. Realizing the error, I quickly added the R-b to each commit and force-pushed the changes. If you pushed something in the intervening 2 minutes, it got lost. On 09/26/2014 08:00 AM, Ian Romanic

Re: [Mesa-dev] [PATCH 1/4] radeonsi/compute: directly emit CONTEXT_CONTROL

2014-09-26 Thread Alex Deucher
On Thu, Sep 25, 2014 at 3:02 PM, Tom Stellard wrote: > On Mon, Sep 22, 2014 at 09:48:43PM +0200, Marek Olšák wrote: >> No, we cannot detect compute-only contexts yet. We need to add a new >> parameter to pipe_context::context_create which says that a context is >> compute-only. That should be Open

[Mesa-dev] [PATCH v2] glsl: Optimize min/max expression trees

2014-09-26 Thread Iago Toral Quiroga
Original patch by Petri Latvala : Add an optimization pass that drops min/max expression operands that can be proven to not contribute to the final result. The algorithm is similar to alpha-beta pruning on a minmax search, from the field of AI. This optimization pass can optimize min/max expressi

Re: [Mesa-dev] [PATCH 2/6] st/va: skeleton VAAPI state tracker

2014-09-26 Thread Emil Velikov
Hi Leo, On 25/09/14 15:21, Liu, Leo wrote: > Hi Gwenole and Emil, > [...] > the reason for $(LIBVA_LIBS) is for xcb lib, from configure.ac > +PKG_CHECK_MODULES([LIBVA], [libva >= 0.35.0 x11-xcb xcb-dri2 >= > $XCBDRI2_REQUIRED]) > > I will separate them, and remove libva for link. > I've co

Re: [Mesa-dev] [PATCH 1/4] radeonsi/compute: directly emit CONTEXT_CONTROL

2014-09-26 Thread Christian König
How about assuming for each CS that it can use the compute ring and as soon as we submit a PM4 command that can only be executed on the graphics ring note that this CS needs to be executed on the graphics ring? Just an idea, Christian. Am 25.09.2014 um 21:02 schrieb Tom Stellard: On Mon, Sep

Re: [Mesa-dev] [Mesa-stable] [PATCH] configure.ac: Compute LLVM_VERSION_PATCH using llvm-config

2014-09-26 Thread Jonathan Gray
On Thu, Sep 25, 2014 at 12:55:40PM -0700, Tom Stellard wrote: > This is the only guaranteed way get the patch level for llvm, > since the define cannot always be found in config.h depending > on the version of llvm or the build system used. > > CC: mesa-sta...@lists.freedesktop.org Reviewed-by: J

[Mesa-dev] [Bug 84355] texture2DProjLod and textureCubeLod are not supported when using GLES.

2014-09-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84355 Kenneth Graunke changed: What|Removed |Added Assignee|mesa-dev@lists.freedesktop. |i...@freedesktop.org

[Mesa-dev] [Bug 84355] texture2DProjLod and textureCubeLod are not supported when using GLES.

2014-09-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84355 kalyank changed: What|Removed |Added Hardware|Other |x86 (IA32) -- You are receiving this mail bec

Re: [Mesa-dev] [PATCH 2/4] i965: Issue performance warnings on MapBufferRange stalls.

2014-09-26 Thread Kenneth Graunke
On Friday, August 29, 2014 11:10:48 PM Kenneth Graunke wrote: > This is easy: we just need to use brw_map_bo instead of mapping it > directly. > > Signed-off-by: Kenneth Graunke > --- > src/mesa/drivers/dri/i965/intel_buffer_objects.c | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-

[Mesa-dev] [Bug 84355] New: texture2DProjLod and textureCubeLod are not supported when using GLES.

2014-09-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84355 Priority: medium Bug ID: 84355 Assignee: mesa-dev@lists.freedesktop.org Summary: texture2DProjLod and textureCubeLod are not supported when using GLES. Severity: normal C