[Mesa-dev] [PATCH 16/27] i965/miptree: Allocate mcs_buf for an image's CCS_E

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky This code will disable actually creating these buffers for the scanout, but it puts the allocation in place. Primarily this patch is split out for review, it can be squashed in later if preferred. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH 08/27] dri: Add an image creation with modifiers

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky Modifiers will be obtains or guessed by the client and passed in during image creation/import. This requires bumping the DRIimage version. Signed-off-by: Ben Widawsky --- include/GL/internal/dri_interface.h | 28 +++- src/gallium/state_trackers

[Mesa-dev] [PATCH 09/27] gbm: Introduce modifiers into surface/bo creation

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky The idea behind modifiers like this is that the user of GBM will have some mechanism to query what properties the hardware supports for its BO or surface. This information is directly passed in (and stored) so that the DRI implementation can create an image with the

[Mesa-dev] [PATCH 03/27] gbm: Export a plane getter function

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky This will be used by clients that need to know the number of planes allocated for them on behalf of the GL or other API. The best current example of this is when an extra "plane" is allocated to store compression data for the primary plane. Cc: Daniel Stone Sig

[Mesa-dev] [PATCH 11/27] gbm: Get modifiers from DRI

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky v2: Use stored modifiers from create instead of queryImage Discussion with Kristian yielded that there is no need for per plane modifiers. Signed-off-by: Ben Widawsky --- src/gbm/backends/dri/gbm_dri.c | 32 src/gbm/gbm-symbols

[Mesa-dev] [PATCH 00/27] Renderbuffer Decompression (and GBM modifiers)

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky This patch series ultimately adds support within the i965 driver for Renderbuffer Decompression with GBM. In short, this feature reduces memory bandwidth by allowing the GPU to work with losslessly compressed data and having that compression scheme understood by the display

[Mesa-dev] [PATCH 15/27] i965/miptree: Add a helper functions for image creation

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky This provides a common function or creating miptrees when there is an existing DRIimage to use. That provides an easy way to add CCS allocation. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_fbo.c | 17 - src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH 19/27] i965/miptree: Allocate mt earlier in update winsys

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky Allows us to continue utilizing common miptree creation using __DRIimage without creating a new DRIimage (for the intel_process_dri2_buffer() case). This is a bit ugly, but I think it's the best one can do. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri

[Mesa-dev] [PATCH 02/27] gbm: Fix width height getters return type (trivial)

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky Signed-off-by: Ben Widawsky --- src/gbm/main/gbm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gbm/main/gbm.h b/src/gbm/main/gbm.h index 59daaa1..efb329e 100644 --- a/src/gbm/main/gbm.h +++ b/src/gbm/main/gbm.h @@ -294,10 +294,10 @@ gbm_bo_map

[Mesa-dev] [PATCH 04/27] gbm: Create a gbm_device getter for stride

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky This will be used so we can query information per plane. Signed-off-by: Ben Widawsky --- src/gbm/backends/dri/gbm_dri.c | 7 +++ src/gbm/main/gbm.c | 2 +- src/gbm/main/gbmint.h | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a

[Mesa-dev] [PATCH 22/27] i965: Change resolve flags to enum

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky In the foreseeable future it doesn't seem to make sense to have multiple resolve flags. What does make sense is to have the caller give an indication to the lower layers what it things should be done for resolve. The enum change distinguishes this binary selection. Signe

[Mesa-dev] [PATCH 26/27] i965: Remove scanout restriction from lossless compression

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky Cc: Topi Pohjolainen Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c

[Mesa-dev] [PATCH 23/27] i965: Plumb resolve hints from miptrees to blorp

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_blorp.c | 3 ++- src/mesa/drivers/dri/i965/brw_blorp.h | 3 ++- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/mesa

[Mesa-dev] [PATCH 24/27] i965: Add new resolve hints full and partial

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky Upper layers of the code will have the need to specify full or partial resolves (more on this in the next patch). This code simply adds the new enums and plumbs it in as minimally as necessary. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_blorp.c

[Mesa-dev] [PATCH 13/27] i965: Separate image allocation with modifiers

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky Since the code doesn't support modifiers yet, this patch should do nothing other than prepare for more patches. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_screen.c | 73 ++-- 1 file changed, 60 insertions(+), 13 dele

[Mesa-dev] [PATCH 21/27] i965: Make CCS stride match kernel's expectations

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky Cc: Ville Syrjälä Cc: Jason Ekstrand Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index

[Mesa-dev] [PATCH 17/27] i965: Create correctly sized mcs for an image

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_screen.c | 37 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 0f19a6e

[Mesa-dev] [PATCH 12/27] i965: Bring back always Y-tiled on SKL+

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky commit 6a0d036483caf87d43ebe2edd1905873446c9589 Author: Ben Widawsky Date: Thu Apr 21 20:14:58 2016 -0700 i965: Always use Y-tiled buffers on SKL+ Aside from the benchmark gains that were initially posted, I was able to collect memory bandwidth data running kmscube

[Mesa-dev] [PATCH 25/27] i965: Use partial resolves for CCS buffers being scanned out

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky On Gen9 hardware, the display engine is able to scanout a compressed framebuffer by providing an offset to auxiliary compression information. Unfortunately, the hardware is incapable of doing the same thing for the fast clear color. To mitigate this, the hardware introduced a

[Mesa-dev] [PATCH 05/27] gbm: Export a per plane getter for stride

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky Signed-off-by: Ben Widawsky --- src/gbm/backends/dri/gbm_dri.c | 26 +- src/gbm/gbm-symbols-check | 1 + src/gbm/main/gbm.c | 15 ++- src/gbm/main/gbm.h | 3 +++ 4 files changed, 43 insertions(+), 2 deletions

[Mesa-dev] [PATCH 18/27] i965/miptree: Add a return for updating of winsys

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky There is nothing particularly useful to do currently if the update fails, but there is no point carrying on either. As a result, this has a behavior change. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_context.c | 14 -- src/mesa/drivers

[Mesa-dev] [PATCH 27/27] i965: Handle compression modifier

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky FINISHME: Use the kernel's final choice for the fb modifier bwidawsk@norris2:~/intel-gfx/kmscube (modifiers $) ~/scripts/measure_bandwidth.sh ./kmscube none Read bandwidth: 603.91 MiB/s Write bandwidth: 615.28 MiB/s bwidawsk@norris2:~/intel-gfx/kmscube (modi

[Mesa-dev] [PATCH 20/27] i965: Pretend that CCS modified images are two planes

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_screen.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 91eb7ec..f40761a

[Mesa-dev] [PATCH 10/27] i965: Handle Y-tile modifier

2016-12-01 Thread Ben Widawsky
From: Ben Widawsky This doesn't actually enable Y-tiling, it simply parses it and moves on. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_image.h | 1 + src/mesa/drivers/dri/i965/intel_screen.c | 36 +--- 2 files changed, 29 insertions(

Re: [Mesa-dev] [PATCH 14/27] i965: Allow aux buffers to have an offset

2016-12-01 Thread Ben Widawsky
On 16-12-01 14:41:20, Kenneth Graunke wrote: On Thursday, December 1, 2016 2:09:55 PM PST Ben Widawsky wrote: From: Ben Widawsky Previously our aux buffers (MCS, and HiZ) never had an offset because they were in their own buffer object. When using the CCS lossless compression feature, it&#

Re: [Mesa-dev] [PATCH 02/27] gbm: Fix width height getters return type (trivial)

2016-12-02 Thread Ben Widawsky
On 16-12-02 18:07:22, Daniel Stone wrote: Hi, On 2 December 2016 at 17:56, Eric Engestrom wrote: On Thursday, 2016-12-01 14:09:43 -0800, Ben Widawsky wrote: --- a/src/gbm/main/gbm.h +++ b/src/gbm/main/gbm.h @@ -294,10 +294,10 @@ gbm_bo_map(struct gbm_bo *bo, void gbm_bo_unmap(struct gbm_bo

Re: [Mesa-dev] [PATCH 2/9] i965: Consider surface resolves just before draw

2016-12-20 Thread Ben Widawsky
using blorp. Blorp doesn't trash global gl state but only the internal driver state. Signed-off-by: Topi Pohjolainen CC: Kenneth Graunke CC: Jason Ekstrand CC: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_compute.c | 1 + src/mesa/drivers/dri/i965/brw_context.c | 4 src/mesa/drivers/dri

Re: [Mesa-dev] [PATCH] i965: Use tex_mocs instead of rb_mocs for GL images.

2016-07-18 Thread Ben Widawsky
t;gen].rb_mocs, > false, > + surface_state_infos[brw->gen].tex_mocs, > false, > surf_offset, surf_index, > I915_GEM_DOMAIN_SAMPLER, > access == GL_READ_ONLY ?

[Mesa-dev] [PATCH] gbm: Removed unused function.

2016-07-29 Thread Ben Widawsky
AFAICT, it's never been used. It was briefly nudged in the right direction here: commit 10e5ffd4961055ebba5be4d85a93cc66cdd5a635 Author: Emil Velikov Date: Sat Jan 25 17:19:10 2014 + gbm: do not export _gbm_mesa_get_device Cc: Kristian Høgsberg Cc: Emil Velikov Signed-off-by

[Mesa-dev] [PATCH] gbm: Correct bo_import documentation (trivial)

2016-08-01 Thread Ben Widawsky
Missed here: commit a43d286ef7ff65087b1f051d071b829ca7b02073 Author: Kristian Høgsberg Date: Fri Mar 28 10:17:11 2014 -0700 gbm: Add import from fd Cc: Kristian Høgsberg Signed-off-by: Ben Widawsky --- src/gbm/main/gbm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [Mesa-dev] [PATCH 2/2] i965: Use IVB specific formula for depthbuffer

2013-09-29 Thread Ben Widawsky
On Thu, Sep 26, 2013 at 01:28:47PM -0700, Chad Versace wrote: > On 09/22/2013 10:37 AM, Ben Widawsky wrote: > >After the last patch, we can replace the region allocated in the miptree > >creation with a more straightforward (and hopefully smaller resulting) > >buffer

[Mesa-dev] [PATCH 1/2] [v2] i965: Extract region use from hiz depth buffer

2013-09-30 Thread Ben Widawsky
gion. This allows an upcoming patch to simply allocate the region, and not the whole miptree. v2: Don't use intel_region. Instead use bo + stride. We actually do store the stride in libdrm, but it is inaccessible in the current libdrm version. CC: Chad Versace Signed-off-by: Ben Widawsky

[Mesa-dev] [PATCH 2/2] [v3] i965: Use IVB specific formula for depthbuffer

2013-09-30 Thread Ben Widawsky
62e+08 42099587 CC: Chad Versace Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67564 Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 194 +++--- src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 2 +- 2 files changed, 176 insertions(+),

[Mesa-dev] [PATCH 2/2] [v4] i965: Use IVB specific formula for depthbuffer

2013-09-30 Thread Ben Widawsky
tps://bugs.freedesktop.org/show_bug.cgi?id=67564 Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 161 +++--- src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 2 +- 2 files changed, 143 insertions(+), 20 deletions(-) diff --git a/src/mesa/drive

Re: [Mesa-dev] [PATCH 1/2] [v2] i965: Extract region use from hiz depth buffer

2013-09-30 Thread Ben Widawsky
On Mon, Sep 30, 2013 at 07:24:08PM -0700, Ian Romanick wrote: > On 09/30/2013 12:35 PM, Ben Widawsky wrote: > > Starting with Ivybridge, the hierarchical had relaxed requirements for > > its allocation. Following a "simple" formula in the bspec was all you > > ne

Re: [Mesa-dev] [PATCH 2/2] [v4] i965: Use IVB specific formula for depthbuffer

2013-09-30 Thread Ben Widawsky
On Mon, Sep 30, 2013 at 07:22:54PM -0700, Ian Romanick wrote: > On 09/30/2013 05:45 PM, Ben Widawsky wrote: > > After the last patch, we can replace the region allocated in the miptree > > creation with a more straightforward (and hopefully smaller resulting) > > buffer

Re: [Mesa-dev] [PATCH 1/2] [v2] i965: Extract region use from hiz depth buffer

2013-10-01 Thread Ben Widawsky
On Tue, Oct 01, 2013 at 01:06:02PM -0700, Chad Versace wrote: > On 09/30/2013 12:35 PM, Ben Widawsky wrote: > >Starting with Ivybridge, the hierarchical had relaxed requirements for > >its allocation. Following a "simple" formula in the bspec was all you > >ne

Re: [Mesa-dev] [PATCH 1/2] [v2] i965: Extract region use from hiz depth buffer

2013-10-01 Thread Ben Widawsky
On Tue, Oct 01, 2013 at 03:46:14PM -0700, Matt Turner wrote: > On Mon, Sep 30, 2013 at 12:35 PM, Ben Widawsky > wrote: > > Starting with Ivybridge, the hierarchical had relaxed requirements for > > its allocation. > > This reads badly. How about > > The HiZ buffer&

Re: [Mesa-dev] [PATCH 1/2] [v2] i965: Extract region use from hiz depth buffer

2013-10-01 Thread Ben Widawsky
On Tue, Oct 01, 2013 at 01:06:02PM -0700, Chad Versace wrote: > On 09/30/2013 12:35 PM, Ben Widawsky wrote: > >Starting with Ivybridge, the hierarchical had relaxed requirements for > >its allocation. Following a "simple" formula in the bspec was all you > >ne

Re: [Mesa-dev] [PATCH] gen7: Use logical, not physical, dims in 3DSTATE_DEPTH_BUFFER

2013-10-01 Thread Ben Widawsky
Width and Height to the slice's > logical dimensions. We should do the same for 3DSTATE_DEPTH_BUFFER, > because the hw docs say so. > > No Piglit regressions (-x glx) on Ivybridge with Wayland. > > CC: Paul Berry > CC: Jordan Justen > CC: Ben Widawsky > Signed-

Re: [Mesa-dev] [PATCH] gen7: Use logical, not physical, dims in 3DSTATE_DEPTH_BUFFER

2013-10-02 Thread Ben Widawsky
say so. > >> > >> No Piglit regressions (-x glx) on Ivybridge with Wayland. > > HSW too? > My tested-by was on HSW. > >> CC: Paul Berry > >> CC: Jordan Justen > >> CC: Ben Widawsky > >> Signed-off-by: Chad Versace > >&

[Mesa-dev] [PATCH 1/2] i965: Extract region use from hiz depth buffer

2013-10-08 Thread Ben Widawsky
er.stride instead of hiz_region.pitch Kill temporary depth_mt variable. memset the temporary region variable (Chad) CC: Chad Versace Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_misc_state.c| 11 +--- src/mesa/drivers/dri/i965/gen6_blorp.cpp | 21 ++--

[Mesa-dev] [PATCH 2/2] i965: Use IVB specific formula for depthbuffer

2013-10-08 Thread Ben Widawsky
ad) Use mt->logical_depth0 instead of mt->level[i].depth (Chad) Kill TODO about compressed depth textures (Chad) Use target_to_target (Chad) Add missing GL_TEXTURE_1D, and GL_TEXTURE_CUBE_MAP cases Remove X tiled fallback (Chad) CC: Chad Versace Bugzilla: https://bugs.freedesktop.org/sho

Re: [Mesa-dev] [PATCH] i965/gen8: Align hiz depth clear to 8x4

2014-06-13 Thread Ben Widawsky
ation is actually a lot more complicated than this, but this is sufficient. It would seem though that this covers all cases. (Also, you don't need it for a resolve AFAICT, only a clear). Reviewed-by: Ben Widawsky > +static void > +align_rectangle_primitive(uint32_t *width,

Re: [Mesa-dev] [PATCH] i965/vec4: Use the sampler for pull constant loads on Broadwell.

2014-06-14 Thread Ben Widawsky
sults confirmed. Excellent work, Ken! Tested-by: Ben Widawsky -- Ben Widawsky, Intel Open Source Technology Center ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 2/3] i965/vec4: Don't fix_math_operand() on Gen >= 8.

2014-06-23 Thread Ben Widawsky
lize I do not quite see even all the gen7 restrictions, so I am not qualified to determine if you accounted for gen8. In particular, stride of src, and dest must be the same, and "Regioning must ensure Src.Vstride = Src.Width * Src.Hstride" The rest of the series is: Reviewed-by: Ben Widaw

[Mesa-dev] [PATCH 2/2] i965: Viewport extents print (don't push)

2014-07-03 Thread Ben Widawsky
Just to verify the code does what we want... --- src/mesa/drivers/dri/i965/gen8_viewport_state.c | 4 1 file changed, 4 insertions(+) diff --git a/src/mesa/drivers/dri/i965/gen8_viewport_state.c b/src/mesa/drivers/dri/i965/gen8_viewport_state.c index 2bf5fbb..cfbcb12 100644 --- a/src/mesa/d

[Mesa-dev] [PATCH 1/2] i965: Viewport extents on gen8

2014-07-03 Thread Ben Widawsky
Viewport extents are a 3rd rectangle that defines which pixels get discarded as part of the rasterization process. This can potentially improve performance by reducing cache usage, and freeing up PS cycles. This will get hit if one's viewport is smaller than the full renderbuffer, and scissoring is

Re: [Mesa-dev] [PATCH] ff_fragment_shader: Access glsl_types directly.

2014-07-03 Thread Ben Widawsky
Reviewed-by: Ben Widawsky On Thu, Jul 03, 2014 at 02:47:14PM -0700, Kenneth Graunke wrote: > Originally, we didn't have direct accessors for all of the GLSL types, > so the only way to get at them was to use the symbol table. Now, we > can just get at them directly, which is simp

Re: [Mesa-dev] [PATCH 1/2] i965: Viewport extents on gen8

2014-07-24 Thread Ben Widawsky
On Thu, Jul 24, 2014 at 10:29:11AM +0300, Pohjolainen, Topi wrote: > On Thu, Jul 03, 2014 at 11:23:13AM -0700, Ben Widawsky wrote: > > Viewport extents are a 3rd rectangle that defines which pixels get > > discarded as part of the rasterization process. This can potentially > >

Re: [Mesa-dev] [PATCH] i965: Fix 1D Array Shadow miptree layout issue (leading to assert or hang)

2014-07-31 Thread Ben Widawsky
Signed-off-by: Jordan Justen > Cc: Ben Widawsky > Cc: Jason Ekstrand > Cc: "10.2" I was hoping I would have a chance to fix this one :-( Tested-by: Ben Widawsky > --- > On a gen6 piglit quick run: > 15: crash => pass > 1: crash => fai

Re: [Mesa-dev] [RFC] i965: Attempt to merge some surface state setup logic

2014-07-31 Thread Ben Widawsky
patch 7. I always go back and forth on whether to combine these things. And given the amount of churn in the HW between gen7, and gen8, I am a bit hesitant. What was the reason Ken dropped that one? I didn't spot anything obviously wrong in any of the patches. Run the piglits I say -- Ben

[Mesa-dev] [PATCH 1/2] i965: Extract region use from hiz depth buffer

2013-09-22 Thread Ben Widawsky
gion. This allows an upcoming patch to simply allocate the region, and not the whole miptree. CC: Chad Versace Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_misc_state.c| 8 +++--- src/mesa/drivers/dri/i965/gen6_blorp.cpp | 2 +- src/mesa/drivers/dri/i965/gen7_blorp.cpp

[Mesa-dev] [PATCH 2/2] i965: Use IVB specific formula for depthbuffer

2013-09-22 Thread Ben Widawsky
otivation. CC: Chad Versace Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67564 Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 149 +++--- 1 file changed, 133 insertions(+), 16 deletions(-) diff --git a/src/mesa/drivers/dri/i965/int

[Mesa-dev] [PATCH 2/2] [v2] i965: Use IVB specific formula for depthbuffer

2013-09-23 Thread Ben Widawsky
motivation. v2: copy-paste fix where I used I915_TILING_Y where I meant _Y. (Topi) CC: Chad Versace Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67564 Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 149 +++--- 1 file changed, 133 insertio

Re: [Mesa-dev] [PATCH 1/2] i965: Extract region use from hiz depth buffer

2013-09-26 Thread Ben Widawsky
On Thu, Sep 26, 2013 at 11:16:52AM -0700, Chad Versace wrote: > On 09/26/2013 10:37 AM, Chad Versace wrote: > >On 09/22/2013 10:37 AM, Ben Widawsky wrote: > >>Starting with Ivybridge, the hierarchical had relaxed requirements for > >

[Mesa-dev] [PATCH] i965: Use default contexts when possible.

2014-01-02 Thread Ben Widawsky
context idea is valid. Needs mesa eyes. Cc: Kenneth Graunke Signed-off-by: Ben Widawsky --- configure.ac| 2 +- src/mesa/drivers/dri/i965/brw_context.c | 9 - 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index

Re: [Mesa-dev] [libdrm PATCH] intel: Create a new drm_intel_bo offset64 field.

2014-01-14 Thread Ben Widawsky
; Reviewed-by: Eric Anholt > > Maybe some day we'll do a symbol-versioned fork of the code without all > the compatibility insanity, and with other 4G limits fixed. I don't > think we have any instances of sharing drm_intel_bos across build-system > boundaries. Anyone wan

Re: [Mesa-dev] [PATCH] i965: Actually emit PIPELINE_SELECT and 3DSTATE_VF_STATISTICS.

2014-04-29 Thread Ben Widawsky
ion > ordering. > > This may fix hangs on Gen6+ when using the media pipeline. > > Cc: "10.0 10.1" > Cc: Ben Widawsky > Signed-off-by: Kenneth Graunke Doesn't this potentially fix issues going back further than g

[Mesa-dev] [rong.r.y...@intel.com: [Intel-gfx] How user space applications load registers on HSW?]

2014-05-06 Thread Ben Widawsky
Or should I hack the kernel? Yang Rong ___ Intel-gfx mailing list intel-...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx - End forwarded message - -- Ben Widawsky, Intel Open Source Technology Center

Re: [Mesa-dev] [Intel-gfx] [benjamin.widaw...@intel.com: intel_gpu_top broken for HSW. Ideas needed]

2013-07-12 Thread Ben Widawsky
On Fri, Jul 12, 2013 at 07:16:37PM +0200, Daniel Vetter wrote: > On Fri, Jul 12, 2013 at 7:12 PM, Ben Widawsky > wrote: > > FWD'd from our internal list now that we have more insight. > > - Forwarded message from Ben Widawsky > > - > > > > Date:

Re: [Mesa-dev] [Intel-gfx] [benjamin.widaw...@intel.com: intel_gpu_top broken for HSW. Ideas needed]

2013-07-12 Thread Ben Widawsky
On Fri, Jul 12, 2013 at 10:12:39AM -0700, Ben Widawsky wrote: > FWD'd from our internal list now that we have more insight. > - Forwarded message from Ben Widawsky - > > Date: Thu, 11 Jul 2013 10:32:03 -0700 > From: Ben Widawsky > To: linux-...@linux.intel.com &

[Mesa-dev] [benjamin.widaw...@intel.com: intel_gpu_top broken for HSW. Ideas needed]

2013-07-13 Thread Ben Widawsky
FWD'd from our internal list now that we have more insight. - Forwarded message from Ben Widawsky - Date: Thu, 11 Jul 2013 10:32:03 -0700 From: Ben Widawsky To: linux-...@linux.intel.com Subject: intel_gpu_top broken for HSW. Ideas needed Message-ID: <20130711173202.gb8...@i

Re: [Mesa-dev] [Intel-gfx] [PATCH] i965: Use default contexts when possible.

2014-02-23 Thread Ben Widawsky
On Thu, Jan 02, 2014 at 07:50:35PM -1000, Ben Widawsky wrote: > Will full PPGTT support it can be assumed that every file descriptor > gets its own hardware context. As such, there is no need to allocate > anew context in order to use the features provided by hardware contexts. > Elim

Re: [Mesa-dev] [PATCH] i965: Remove tabs from instruction scheduler.

2014-12-01 Thread Ben Widawsky
An easy one :D Reviewed-by: Ben Widawsky ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] i965: Sort array elements to increase chances of reusing buffer relocation

2014-12-01 Thread Ben Widawsky
On Mon, Dec 01, 2014 at 05:37:27PM -0800, Eric Anholt wrote: > Neil Roberts writes: > > > When submitting the vertex buffers the i965 driver will try to recognise > > when > > multiple attributes are using the same buffer so that it can submit a single > > relocation for it and set a different o

Re: [Mesa-dev] [PATCH] i965: Make validate_reg tables constant

2014-12-01 Thread Ben Widawsky
gt; valid. Given that a half byte (apparently this part of the docs aren't fond of the word nibble) isn't a real datatype, I doubt 32 will ever be valid. > > [1] http://damien.lespiau.name/intel/gen_regions.html > > With that removed (or justified),

Re: [Mesa-dev] [PATCH] i965: Sort array elements to increase chances of reusing buffer relocation

2014-12-02 Thread Ben Widawsky
On Tue, Dec 02, 2014 at 04:17:35PM +, Neil Roberts wrote: > Ok, I've written a somewhat contrived test case here: > > https://github.com/bpeel/glthing/tree/time-attribs > > (Make sure to use the time-attribs branch) > > The example draws a 1000 single-pixel points each with a separate draw >

[Mesa-dev] [PATCH] [v2] i965: implement ARB_pipeline_statistics_query

2014-12-02 Thread Ben Widawsky
o a new XML doc instead of using the main GL4x.xml (Ilia) - Add a fallthrough comment (Ilia) - Only divide PS invocations by 4 on HSW+ (Ben) Cc: Ilia Mirkin Signed-off-by: Ben Widawsky --- .../glapi/gen/ARB_pipeline_statistics_query.xml| 24 src/mesa/drivers/dri/i965/gen6_queryob

Re: [Mesa-dev] [PATCH] [v2] i965: implement ARB_pipeline_statistics_query

2014-12-02 Thread Ben Widawsky
On Tue, Dec 02, 2014 at 10:47:37PM -0500, Ilia Mirkin wrote: > On Tue, Dec 2, 2014 at 9:33 PM, Ben Widawsky > wrote: > > This patch implements ARB_pipeline_statistics_query. This addition to GL > > does > > not add a new API. Instead, it adds new tokens to the exist

[Mesa-dev] [PATCH] i965/skl: Fix GS thread count location

2014-12-03 Thread Ben Widawsky
SKL moves the GS threadcount to dw8 from dw7, and no longer does the divide by 2 thing. Only compile test. Cc: Kristian Høgsberg Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/gen8_gs_state.c | 29 ++--- 1 file changed, 18 insertions(+), 11 deletions

Re: [Mesa-dev] [PATCH] egl/dri2: Log a warning if no platforms are enabled.

2014-12-03 Thread Ben Widawsky
On Wed, Dec 03, 2014 at 04:47:18PM -0800, Matt Turner wrote: > --- > The number of times I've wondered why piglit/gbm wasn't working... > > src/egl/drivers/dri2/egl_dri2.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c >

Re: [Mesa-dev] [PATCH] egl/dri2: Log a warning if no platforms are enabled.

2014-12-03 Thread Ben Widawsky
On Wed, Dec 03, 2014 at 11:27:55PM -0800, Ben Widawsky wrote: > On Wed, Dec 03, 2014 at 04:47:18PM -0800, Matt Turner wrote: > > --- > > The number of times I've wondered why piglit/gbm wasn't working... > > > > src/egl/drivers/dri2/egl_dri2.c |

[Mesa-dev] [PATCH] i965/gs: Avoid DW * DW mul

2014-12-04 Thread Ben Widawsky
piglit tests on BSW. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84777 (with many dupes) Cc: "10.4" Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_vec4_generator.cpp | 5 - src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp | 3 ++- 2 files changed, 6 inser

Re: [Mesa-dev] [PATCH] i965/gs: Avoid DW * DW mul

2014-12-04 Thread Ben Widawsky
On Thu, Dec 04, 2014 at 05:08:21PM -0800, Matt Turner wrote: > On Thu, Dec 4, 2014 at 3:37 PM, Ben Widawsky > wrote: > > The GS has an interesting use for mul. It's essentially used as a fancy mov > > (in > > fact, I am not sure why a mov isn't used). The docu

Re: [Mesa-dev] [PATCH] i965/gs: Avoid DW * DW mul

2014-12-04 Thread Ben Widawsky
On Thu, Dec 04, 2014 at 05:17:05PM -0800, Kenneth Graunke wrote: > On Thursday, December 04, 2014 03:37:17 PM Ben Widawsky wrote: > > The GS has an interesting use for mul. It's essentially used as a fancy mov > > (in > > fact, I am not sure why a mov isn't

Re: [Mesa-dev] [PATCH] i965/gs: Avoid DW * DW mul

2014-12-04 Thread Ben Widawsky
On Thu, Dec 04, 2014 at 07:48:06PM -0800, Ben Widawsky wrote: > On Thu, Dec 04, 2014 at 05:08:21PM -0800, Matt Turner wrote: > > On Thu, Dec 4, 2014 at 3:37 PM, Ben Widawsky > > wrote: > > > The GS has an interesting use for mul. It's essentially used as a fancy &

Re: [Mesa-dev] [PATCH v3 03/12] i965: Set shader name for generator from call site

2014-12-05 Thread Ben Widawsky
On Thu, Dec 04, 2014 at 10:02:24PM -0800, Kristian Høgsberg wrote: > fs_generator no longer knows what stage it's generating code for, so > we have to set the debug name of the shader from the call site. > > Signed-off-by: Kristian Høgsberg > --- > src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp

Re: [Mesa-dev] [PATCH v3 03/12] i965: Set shader name for generator from call site

2014-12-05 Thread Ben Widawsky
On Fri, Dec 05, 2014 at 01:36:52PM -0800, Matt Turner wrote: > On Fri, Dec 5, 2014 at 1:34 PM, Ben Widawsky wrote: > > I do wonder the original motivation for the debug_flag member. Seems totally > > superfluous. > > Because brw_fs_generator is used by the fs and b

Re: [Mesa-dev] [PATCH] i965: Replace 'noann' debug flag with 'ann'.

2014-12-05 Thread Ben Widawsky
(1 << 26) > #define DEBUG_OPTIMIZER (1 << 27) > -#define DEBUG_NO_ANNOTATION (1 << 28) > +#define DEBUG_ANNOTATION (1 << 28) > #define DEBUG_NO8 (1 << 29) > > #ifdef HAVE_ANDROID_PLATFORM I never had an opinion, but I completely agree. With or without my suggestion above: Reviewed-by: Ben Widawsky ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v3 04/12] i965: Remove shader program argument and member from fs_generator

2014-12-05 Thread Ben Widawsky
also don't really see the need to have 2-4 as separate patches, but as you like). 1-4: Reviewed-by: Ben Widawsky > --- > src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp | 2 +- > src/mesa/drivers/dri/i965/brw_fs.cpp| 2 +- > src/mesa/drivers/dri/i965/brw_fs.h

Re: [Mesa-dev] [PATCH] i965: Fix union usage for GCC <= 4.6.

2014-12-05 Thread Ben Widawsky
On Fri, Dec 05, 2014 at 06:56:27PM -0800, Matt Turner wrote: > On Fri, Dec 5, 2014 at 6:18 PM, Vinson Lee wrote: > > This patch fixes this build error with GCC <= 4.6. > > > > CXXtest_vf_float_conversions.o > > test_vf_float_conversions.cpp: In function ‘unsigned int f2u(float)’: > > test_vf

Re: [Mesa-dev] [PATCH] i965: Replace 'noann' debug flag with 'ann'.

2014-12-05 Thread Ben Widawsky
On Fri, Dec 05, 2014 at 08:57:27PM -0800, Ian Romanick wrote: > On 12/05/2014 05:23 PM, Ben Widawsky wrote: > > On Fri, Dec 05, 2014 at 05:08:40PM -0800, Matt Turner wrote: > >> --- > >> Eric was against making this the default when I first suggested a flag. > >&

Re: [Mesa-dev] [PATCH] [v2] i965: implement ARB_pipeline_statistics_query

2014-12-08 Thread Ben Widawsky
On Tue, Dec 02, 2014 at 11:07:34PM -0800, Ian Romanick wrote: > Since there will be a v3 anyway, nits below... > > On 12/02/2014 06:33 PM, Ben Widawsky wrote: > > This patch implements ARB_pipeline_statistics_query. This addition to GL > > does > > not add a new API.

[Mesa-dev] [PATCH 4/4] i965: Make sure VALIGN_4 surfaces are Y tiled

2014-12-09 Thread Ben Widawsky
makes the workaround more understandable, and more future-proof. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c ind

[Mesa-dev] [PATCH 1/4] i965/byt: Allow 128 bpp to be linear or Y-tiled on

2014-12-09 Thread Ben Widawsky
Let's assume that this IVB specific feature exists on BYT too, since it's very much like IVB Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tre

[Mesa-dev] [PATCH 3/4] i965: Set VALIGN constraints for all gens >= 6

2014-12-09 Thread Ben Widawsky
As far as I can tell, this restriction is always needed. --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index efe63b5..25bf37b 10064

[Mesa-dev] [PATCH 2/4] i965: Allow other tiling formats for 128 bpp on gen6+

2014-12-09 Thread Ben Widawsky
bpp formats on Sandybridge. The above commit has a mailing list discussion about this where Ken said the issue was reintroduced on later GENs. I can't find the evidence to support this anymore, so let's turn it on and hope for the best. Cc: Kenneth Graunke Signed-off-by: Ben Widawsky

Re: [Mesa-dev] [PATCH 1/4] i965/byt: Allow 128 bpp to be linear or Y-tiled on

2014-12-09 Thread Ben Widawsky
On Tue, Dec 09, 2014 at 04:14:14PM -0800, Matt Turner wrote: > On Tue, Dec 9, 2014 at 4:02 PM, Ben Widawsky > wrote: > > Let's assume that this IVB specific feature exists on BYT too, since it's > > very > > much like IVB > > To clarify, the featu

[Mesa-dev] IGNORE Re: [PATCH 4/4] i965: Make sure VALIGN_4 surfaces are Y tiled

2014-12-09 Thread Ben Widawsky
On Tue, Dec 09, 2014 at 04:03:00PM -0800, Ben Widawsky wrote: > Quoting the workaround already there: > "This field must be set to VALIGN_4 for all tiled Y Render Target surfaces." > > This patch simply asserts we return Y tiled, instead of X or Y. It has no > effect >

[Mesa-dev] [PATCH] i965/gen8: Check correct number of blitter dwords

2014-12-10 Thread Ben Widawsky
The odds of having this patch make a difference on Gen8+ are probably very low. Only compile tested. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/intel_blit.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_blit.c b

[Mesa-dev] [PATCH] i965/gen8+: Remove false perf debug message about MOCS

2014-12-11 Thread Ben Widawsky
We support MOCS on both gen8 and gen9, so the message seems meaningless. Remove it to avoid confusion. Trivial. Cc: Kristian Høgsberg Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/gen8_misc_state.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965

Re: [Mesa-dev] [PATCH 1/5] i965/query: Set Ready flag in gen6_queryobj_get_results().

2014-12-13 Thread Ben Widawsky
be you can take a look and make sure as well. Also, I notice an extraneous flush in this path, but I think you address it in a later patch. Assuming that's verified (and perhaps commit message updated to explain), this is Reviewed-by: Ben Widawsky ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 4/5] i965/query: Use brw_bo_map to handle stall warnings.

2014-12-13 Thread Ben Widawsky
->bo)) { > - perf_debug("Stalling on the GPU waiting for a query object.\n"); > - } > - } > - > - drm_intel_bo_map(query->bo, false); > + brw_bo_map(brw, query->bo, false, "query object"); > uint64_t *results = query->bo-&

Re: [Mesa-dev] [PATCH 5/5] i965/query: Cache whether the batch references the query BO.

2014-12-14 Thread Ben Widawsky
void gen6_check_query(struct gl_context *ctx, > struct gl_query_object *q) > * not ready yet on the first time it is queried. This ensures that > * the async query will return true in finite time. > */ > - if (drm_intel_bo_references(brw->batch.b

Re: [Mesa-dev] [PATCH 5/5] i965/query: Cache whether the batch references the query BO.

2014-12-15 Thread Ben Widawsky
On Mon, Dec 15, 2014 at 01:28:52PM -0800, Ian Romanick wrote: > On 12/14/2014 04:39 PM, Ben Widawsky wrote: > > On Fri, Dec 12, 2014 at 11:15:42PM -0800, Kenneth Graunke wrote: > >> Chris Wilson noted that repeated calls to CheckQuery() would call > >> drm_intel_bo_refe

Re: [Mesa-dev] [PATCH] i965: Cache register write capability checks.

2014-12-22 Thread Ben Widawsky
oot yourself in the foot if you change the module parameter in a running system, and then it's Reviewed-by: Ben Widawsky > > Checking introduces a synchronization point between the CPU and GPU: > even though we submit very few GPU commands, the GPU might be busy doing > other

[Mesa-dev] [PATCH 00/21] DW Multiplication fixes (+gpu_shader5 on gen8+)

2014-12-22 Thread Ben Widawsky
20 new failures that match other generations), I see no change. I am however optimistic that the series will prevent future failures. (BDW does add 1 new pass, but I am not sure if it's real): spec/ARB_texture_multisample/texelFetch fs sampler2DMSArray 4 98x1x9-98x129x9:fail pass Ben Widaws

[Mesa-dev] [PATCH 09/21] i965: Extract is_dword test

2014-12-22 Thread Ben Widawsky
As it turns out, I have other uses for this tiny convenience function. Simple extraction for use by others. Matt was right for not liking the macro in the initial patch. While doing this, add it to a few easy to spot users of this functionality. Signed-off-by: Ben Widawsky --- src/mesa/drivers

[Mesa-dev] [PATCH 04/21] i965/fs: Disallow SIMD16 multiplies on GEN8

2014-12-22 Thread Ben Widawsky
ll minimize the impact on GEN8 as well. Cc: Kenneth Graunke Cc: Matt Turner Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw

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