Re: [Mesa-dev] [PATCH mesa] i965/blorp: add missing braces

2016-07-06 Thread Pohjolainen, Topi
On Wed, Jul 06, 2016 at 08:40:06PM +0300, Pohjolainen, Topi wrote:
> On Wed, Jul 06, 2016 at 05:36:54PM +0100, Eric Engestrom wrote:
> > Signed-off-by: Eric Engestrom 
> > ---
> > 
> > I know nothing about blorp, but GCC6 noticed the weird indentation, and my 
> > best
> > guess looking at the code is that there are missing braces.
> > 
> >   CC   gen7_blorp.lo
> > gen7_blorp.c: In function ???gen7_blorp_exec???:
> > gen7_blorp.c:797:4: warning: this ???if??? clause does not guard... 
> > [-Wmisleading-indentation]
> > if (params->wm_prog_data)
> > ^~
> > gen7_blorp.c:800:7: note: ...this statement, but the latter is misleadingly 
> > indented as if it is guarded by the ???if???
> >gen7_blorp_emit_constant_ps_disable(brw);
> >^~~
> > 
> > If this is wrong, then the second line should be de-indented.
> 
> It should be indented. I have just pushed patches removing push constant

I meant de-intented.

> support in blorp. It seems I missed that when I made the push constant
> disabling unconditional.
> 
> > 
> > ---
> >  src/mesa/drivers/dri/i965/gen7_blorp.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/src/mesa/drivers/dri/i965/gen7_blorp.c 
> > b/src/mesa/drivers/dri/i965/gen7_blorp.c
> > index 7201549..f40e445 100644
> > --- a/src/mesa/drivers/dri/i965/gen7_blorp.c
> > +++ b/src/mesa/drivers/dri/i965/gen7_blorp.c
> > @@ -794,10 +794,11 @@ gen7_blorp_exec(struct brw_context *brw,
> > gen6_blorp_emit_clip_disable(brw);
> > gen7_blorp_emit_sf_config(brw, params);
> > gen7_blorp_emit_wm_config(brw, params);
> > -   if (params->wm_prog_data)
> > +   if (params->wm_prog_data) {
> >gen7_blorp_emit_binding_table_pointers_ps(brw, wm_bind_bo_offset);
> >  
> >gen7_blorp_emit_constant_ps_disable(brw);
> > +   }
> >  
> > if (params->src.mt) {
> >const uint32_t sampler_offset =
> > -- 
> > 2.9.0
> > 
> ___
> mesa-dev mailing list
> mesa-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH mesa] i965/blorp: add missing braces

2016-07-06 Thread Pohjolainen, Topi
On Wed, Jul 06, 2016 at 05:36:54PM +0100, Eric Engestrom wrote:
> Signed-off-by: Eric Engestrom 
> ---
> 
> I know nothing about blorp, but GCC6 noticed the weird indentation, and my 
> best
> guess looking at the code is that there are missing braces.
> 
>   CC   gen7_blorp.lo
> gen7_blorp.c: In function ???gen7_blorp_exec???:
> gen7_blorp.c:797:4: warning: this ???if??? clause does not guard... 
> [-Wmisleading-indentation]
> if (params->wm_prog_data)
> ^~
> gen7_blorp.c:800:7: note: ...this statement, but the latter is misleadingly 
> indented as if it is guarded by the ???if???
>gen7_blorp_emit_constant_ps_disable(brw);
>^~~
> 
> If this is wrong, then the second line should be de-indented.

It should be indented. I have just pushed patches removing push constant
support in blorp. It seems I missed that when I made the push constant
disabling unconditional.

> 
> ---
>  src/mesa/drivers/dri/i965/gen7_blorp.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/gen7_blorp.c 
> b/src/mesa/drivers/dri/i965/gen7_blorp.c
> index 7201549..f40e445 100644
> --- a/src/mesa/drivers/dri/i965/gen7_blorp.c
> +++ b/src/mesa/drivers/dri/i965/gen7_blorp.c
> @@ -794,10 +794,11 @@ gen7_blorp_exec(struct brw_context *brw,
> gen6_blorp_emit_clip_disable(brw);
> gen7_blorp_emit_sf_config(brw, params);
> gen7_blorp_emit_wm_config(brw, params);
> -   if (params->wm_prog_data)
> +   if (params->wm_prog_data) {
>gen7_blorp_emit_binding_table_pointers_ps(brw, wm_bind_bo_offset);
>  
>gen7_blorp_emit_constant_ps_disable(brw);
> +   }
>  
> if (params->src.mt) {
>const uint32_t sampler_offset =
> -- 
> 2.9.0
> 
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH mesa] i965/blorp: add missing braces

2016-07-06 Thread Eric Engestrom
On Wed, Jul 06, 2016 at 05:26:40PM +0100, Eric Engestrom wrote:
> diff --git a/src/intel/vulkan/Makefile.sources 
> b/src/intel/vulkan/Makefile.sources
> index aa1459a..7303995 100644
> --- a/src/intel/vulkan/Makefile.sources
> +++ b/src/intel/vulkan/Makefile.sources
> @@ -66,7 +66,8 @@ VULKAN_GEM_STUB_FILES := \
>  
>  VULKAN_GENERATED_FILES := \
>   anv_entrypoints.c \
> - anv_entrypoints.h
> + anv_entrypoints.h \
> + anv_timestamp.h
>  
>  
>  GEN7_FILES := \

Unrelated hunk, sorry. Resending in a minute.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev