[Mesa-dev] [Bug 84145] UE4: Realistic Rendering Demo render blue

2014-09-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84145 Ilia Mirkin imir...@alum.mit.edu changed: What|Removed |Added Status|NEW |RESOLVED

[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

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 kenn...@whitecape.org --- src/mesa/drivers/dri/i965/intel_buffer_objects.c | 7 --- 1 file changed, 4

[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 kondapallykalyancontrib...@gmail.com changed: What|Removed |Added Hardware|Other |x86 (IA32)

[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 kenn...@whitecape.org changed: What|Removed |Added Assignee|mesa-dev@lists.freedesktop.

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:

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] [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 completely

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

2014-09-26 Thread Iago Toral Quiroga
Original patch by Petri Latvala petri.latv...@intel.com: 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

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 t...@stellard.net 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

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

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 kenn...@whitecape.org Reviwed-by: Kristian Høgsberg k...@bitplanet.net ---

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 kenn...@whitecape.org Reviewed-by: Kristian Høgsberg k...@bitplanet.net ---

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

[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

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 it.

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 kenn...@whitecape.org 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 kenn...@whitecape.org ---

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 ito...@igalia.com wrote: Original patch by Petri Latvala petri.latv...@intel.com: 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

[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 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

[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 ---

[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 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 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

[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 ++--

[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 ---

[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

[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

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 anuj.pho...@gmail.com wrote: Variables are used in later patches to implement EXT_framebuffer_multisample_blit_scaled extension. Signed-off-by: Anuj Phogat anuj.pho...@gmail.com --- src/mesa/main/mtypes.h | 9 + 1 file changed, 9

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 jljus...@gmail.com wrote: On Tue, Sep 23, 2014 at 5:38 PM, Anuj Phogat anuj.pho...@gmail.com wrote: Variables are used in later patches to implement EXT_framebuffer_multisample_blit_scaled extension. Signed-off-by: Anuj Phogat

[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 christian.koe...@amd.com 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 michael.va...@amd.com Signed-off-by: Christian König christian.koe...@amd.com

[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

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

2014-09-26 Thread Leo Liu
From: Christian König christian.koe...@amd.com 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

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 leo@amd.com 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

[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 +++

[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

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

2014-09-26 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- 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

[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 bri...@vmware.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/mesa/main/compiler.h | 2 +- src/mesa/main/dlopen.h | 12 +++- 2 files

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, the

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 jason.ekstr...@intel.com I'll have to think more about patch 1 On Mon, Sep 8, 2014 at 12:21 PM, Matt Turner matts...@gmail.com wrote: --- src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp | 3 +-- 1 file changed, 1 insertion(+), 2

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 know when

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 ian.d.roman...@intel.com On 09/26/2014 02:14 PM, Emil Velikov wrote: Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/mapi/glapi/gen/gl_x86_asm.py | 2 +-

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 bri...@vmware.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com Reviewed-by: Ian Romanick

[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 kenn...@whitecape.org --- src/mesa/drivers/dri/i965/brw_context.h | 64 - 1 file changed, 32

[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 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 kenn...@whitecape.org --- 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

[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 kenn...@whitecape.org --- src/mesa/drivers/dri/i965/brw_state_upload.c | 4 ++-- 1 file changed, 2

[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 kenn...@whitecape.org --- 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

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

2014-09-26 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand jason.ekstr...@intel.com --- 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 ---

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 kenn...@whitecape.org 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

[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 kenn...@whitecape.org --- src/mesa/main/viewport.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/main/viewport.c

[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 kenn...@whitecape.org ---

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 ja...@jlekstrand.net wrote: Signed-off-by: Jason Ekstrand jason.ekstr...@intel.com --- 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

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 alexdeuc...@gmail.com wrote: On Thu, Sep 25, 2014 at 3:02 PM, Tom Stellard t...@stellard.net 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

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 kenn...@whitecape.org --- src/mesa/main/viewport.c | 6 ++ 1 file changed, 6

[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 kenn...@whitecape.org --- src/mesa/drivers/dri/i965/brw_state_upload.c | 23 +++ 1

[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 kenn...@whitecape.org --- 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

[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 +++

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 ja...@jlekstrand.net 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

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 ja...@jlekstrand.net 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

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 ian.d.roman...@intel.com 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.

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 ian.d.roman...@intel.com On 09/26/2014 02:53 PM, Kenneth Graunke wrote: Unused since krh rewrote fast clears to use meta. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- src/mesa/drivers/dri/i965/brw_context.h | 2 --

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 kenn...@whitecape.org wrote: ~0 is 0x, which only covers the first 32 bits. We need all 64. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- src/mesa/drivers/dri/i965/brw_blorp.cpp | 2 +-

[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 mark.a.ja...@intel.com --- 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

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

2014-09-26 Thread Timothy Arceri
Signed-off-by: Timothy Arceri t_arc...@yahoo.com.au --- 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 @@

[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 t_arc...@yahoo.com.au --- src/glsl/lower_packed_varyings.cpp | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/glsl/lower_packed_varyings.cpp

[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 t_arc...@yahoo.com.au --- 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

[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 kalyan.kondapa...@intel.com Bugzilla:

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 kondapallykalyancontrib...@gmail.com 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.