Re: [Mesa-dev] [PATCH] mesa/glformats: restrict ETC1_RGB8 support to GLES

2015-09-14 Thread Anuj Phogat
On Mon, Sep 14, 2015 at 11:17 AM, Nanley Chery wrote: > From: Nanley Chery > > According to the extensions table and our glext headers, > OES_compressed_ETC1_RGB8_texture is only supported in > GLES1 and GLES2. Since we may give users a GLES3 context > when a GLES2 context is requested, we also

Re: [Mesa-dev] [PATCH 1/3] i965: Abort tiled_memcpy path for ReadPixels in case of transfer operations

2015-09-14 Thread Anuj Phogat
On Tue, Sep 1, 2015 at 6:58 AM, Emil Velikov wrote: > Hi all > > On 21 August 2015 at 23:04, Anuj Phogat wrote: > > We have a similar check in meta pbo path. > > > > Cc: > > Signed-off-by: Anuj Phogat > > --- > > src/mesa/drivers/dri/i965/intel

Re: [Mesa-dev] [PATCH] mesa/glformats: restrict luminance alpha formats to API_OPENGL_COMPAT

2015-09-14 Thread Anuj Phogat
gt;API == API_OPENGL_COMPAT && > + ctx->Extensions.ATI_texture_compression_3dc) { >switch (internalFormat) { >case GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI: > return GL_LUMINANCE_ALPHA; > -- > 2.5.1 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev > Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] mesa: fix errors when reading depth with glReadPixels

2015-09-15 Thread Anuj Phogat
e GL_UNSIGNED_SHORT: > + case GL_UNSIGNED_INT: >case GL_UNSIGNED_INT_24_8: > if (!is_float_depth) > return GL_NO_ERROR; > -- > 2.4.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/

Re: [Mesa-dev] [PATCH V2 1/8] i965: Add a helper function intel_get_tile_dims()

2015-09-15 Thread Anuj Phogat
On Thu, Sep 10, 2015 at 2:38 PM, Ville Syrjälä < ville.syrj...@linux.intel.com> wrote: > On Thu, Sep 10, 2015 at 12:20:10PM -0700, Chad Versace wrote: > > On Wed 19 Aug 2015, Anuj Phogat wrote: > > > V2: > > > - Do the tile width/height computations in the new h

Re: [Mesa-dev] [PATCH v2] mesa/glformats: refactor compressed format support function

2015-09-15 Thread Anuj Phogat
&& ctx->Extensions.OES_compressed_ETC1_RGB8_texture; > + case MESA_FORMAT_LAYOUT_ETC2: > + return _mesa_is_gles3(ctx) || ctx->Extensions.ARB_ES3_compatibility; > + case MESA_FORMAT_LAYOUT_BPTC: > + return _mesa_is_desktop_gl(ctx) && > + ctx->Extensions.ARB_texture_compression_bptc; > + case MESA_FORMAT_LAYOUT_ASTC: > + return ctx->Extensions.KHR_texture_compression_astc_ldr; > default: >return GL_FALSE; > } > -- > 2.5.1 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev > It's a nice patch decluttering the switch. With no piglit, gles3 conformance regressions: Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 6/6] mesa/teximage: reuse compressed format utility functions for base_format

2015-09-15 Thread Anuj Phogat
default: > - ; /* fallthrough */ > - } > - } > - > - if (ctx->API == API_OPENGLES) { > - switch (internalFormat) { > - case GL_PALETTE4_RGB8_OES: > - case GL_PALETTE4_R5_G6_B5_OES: > - case GL_PALETTE8_RGB8_OES: > -

Re: [Mesa-dev] [PATCH 5/6] mesa/texcompress: add compressed formats to base format utility function

2015-09-15 Thread Anuj Phogat
se GL_COMPRESSED_ALPHA: > -- > 2.5.0 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev > Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] mesa: fix errors when reading depth with glReadPixels

2015-09-17 Thread Anuj Phogat
n/readpix.c > @@ -963,6 +963,7 @@ read_pixels_es3_error_check(GLenum format, GLenum type, > return GL_NO_ERROR; > break; >case GL_UNSIGNED_SHORT: > + case GL_UNSIGNED_INT: >case GL_UNSIGNED_INT_24_8: > if (!is_flo

Re: [Mesa-dev] [PATCH 3/6] mesa/formats: add MESA_LAYOUT_LATC

2015-09-18 Thread Anuj Phogat
8,7 @@ _mesa_get_compressed_fetch_func(mesa_format format) > case MESA_FORMAT_LAYOUT_FXT1: >return _mesa_get_fxt_fetch_func(format); > case MESA_FORMAT_LAYOUT_RGTC: > + case MESA_FORMAT_LAYOUT_LATC: >return _mesa_get_compressed_rgtc_func(format); > case MESA_FORMAT_LAYOUT

[Mesa-dev] [PATCH V3 1/8] i965: Add a helper function intel_get_tile_dims()

2015-09-21 Thread Anuj Phogat
Versace Cc: Topi Pohjolainen Signed-off-by: Anuj Phogat Reviewed-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 82 --- src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 4 ++ 2 files changed, 64 insertions(+), 22 deletions(-) diff --git a/src/mesa

[Mesa-dev] [PATCH V3 2/8] i965: Use intel_get_tile_dims() to get tile masks

2015-09-21 Thread Anuj Phogat
Cc: Topi Pohjolainen Signed-off-by: Anuj Phogat Reviewed-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_blorp.cpp | 4 +++- src/mesa/drivers/dri/i965/brw_misc_state.c| 20 +++-- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 31 --- src

Re: [Mesa-dev] [PATCH V2 8/8] i965: Rename intel_miptree_get_dimensions_for_image()

2015-09-22 Thread Anuj Phogat
On Wed, Sep 16, 2015 at 4:30 PM, Chad Versace wrote: > On Wed 19 Aug 2015, Anuj Phogat wrote: >> This function isn't specific to miptrees. So, drop the "miptree" >> from function name. >> >> Signed-off-by: Anuj Phogat >> --- >> src/mesa/dri

[Mesa-dev] [PATCH V3 8/8] i965: Rename intel_miptree_get_dimensions_for_image()

2015-09-22 Thread Anuj Phogat
This function isn't specific to miptrees. So, drop the "miptree" from function name. V3: Add a comment explaining how the 1D Array texture height and depth is interpreted by Intel hardware. Cc: Chad Versace Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/intel_fbo.

Re: [Mesa-dev] [PATCH] meta: Handle array textures in scaled MSAA blits

2015-09-23 Thread Anuj Phogat
d that > patch should be safe for stable. > > Signed-off-by: Ian Romanick > Cc: Anuj Phogat > Cc: Topi Pohjolainen > Cc: Jordan Justen > Cc: "10.6 11.0" > --- > This is currently running through our Jenkins server. There were no > regressions on my BD

Re: [Mesa-dev] [PATCH] i965/gen9: Add a condition for starting pixel in fast copy blit

2015-09-23 Thread Anuj Phogat
On Mon, Aug 10, 2015 at 11:20 AM, Anuj Phogat wrote: > This condition restricts the use of fast copy blit to cases > where starting pixel of src and dst is oword (16 byte) aligned. > > Many piglit tests (if using fast copy blit in Mesa) failed earlier > because I missed adding this

Re: [Mesa-dev] [PATCH] i965/gen9: Don't use fast copy blit in case of non power of 2 cpp

2015-09-23 Thread Anuj Phogat
On Mon, Aug 10, 2015 at 1:59 PM, Anuj Phogat wrote: > > > On Mon, Aug 10, 2015 at 11:17 AM, Anuj Phogat wrote: >> >> Many piglit tests (if using fast copy blit in Mesa) failed earlier >> because I missed adding this condition. Fast copy blit is currently >> enabl

[Mesa-dev] [PATCH V2 1/7] i965/gen9: Don't use intel_..._texture_alignment_unit() for linear 1D layout

2015-09-23 Thread Anuj Phogat
If gen9_use_linear_1d_layout() returns true, we discards the align_w computed earlier and use fixed align_w = 64 in gen9_miptree_layout_1d(). So, avoid computing align_w when not required. V2: Rebased on master. Signed-off-by: Anuj Phogat --- Bump for the series. src/mesa/drivers/dri/i965

Re: [Mesa-dev] [PATCH v2] meta: Support 16x MSAA in the multisample scaled blit shader

2015-09-24 Thread Anuj Phogat
s a 4x4 grid as follows: > +* > + *- > +*| 0 | 1 | 2 | 3 | > +*- > +*| 4 | 5 | 6 | 7 | > +*- > +*| 8 | 9 |10 |11 | > +*- > +*|12 |13 |14 |15 | > +*- > */ > uint8_t SampleMap2x[2]; > uint8_t SampleMap4x[4]; > uint8_t SampleMap8x[8]; > + uint8_t SampleMap16x[16]; > > /** GL_ARB_shader_atomic_counters */ > GLuint MaxAtomicBufferBindings; > -- > 1.9.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 09/12] i965/fs/skl+: Fix calculating gl_SampleID for 16x MSAA

2015-09-24 Thread Anuj Phogat
27;re supposed to get the per slot SampleID written to 15:0 bits in R1.0. I used SSPI to compute the SampleID because I never got anything useful in these bits on IVB. Things might have changed on later platforms. So, I think it's worth trying to do what docs say. I'll send ou

Re: [Mesa-dev] [PATCH 1/5] i965/miptree: More comments for BRW_MAP_DIRECT_BIT

2015-09-25 Thread Anuj Phogat
On Fri, Sep 25, 2015 at 12:05 PM, Chad Versace wrote: > Clarify that this bit extends the set of GL_MAP_*_BIT enums. > --- > src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h > b/src/mesa/drivers

Re: [Mesa-dev] [PATCH 1/5] i965/miptree: More comments for BRW_MAP_DIRECT_BIT

2015-09-25 Thread Anuj Phogat
On Fri, Sep 25, 2015 at 12:44 PM, Anuj Phogat wrote: > On Fri, Sep 25, 2015 at 12:05 PM, Chad Versace wrote: >> Clarify that this bit extends the set of GL_MAP_*_BIT enums. >> --- >> src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 2 ++ >> 1 file changed, 2 insertion

Re: [Mesa-dev] [PATCH V3 8/8] i965: Rename intel_miptree_get_dimensions_for_image()

2015-09-25 Thread Anuj Phogat
On Fri, Sep 25, 2015 at 4:27 PM, Chad Versace wrote: > On Tue 22 Sep 2015, Anuj Phogat wrote: >> This function isn't specific to miptrees. So, drop the "miptree" >> from function name. >> >> V3: Add a comment explaining how the 1D Array texture heigh

Re: [Mesa-dev] [PATCH 1/2] i965/mt: Declare some functions as static

2015-10-01 Thread Anuj Phogat
ee *mt); > + > bool > intel_miptree_alloc_non_msrt_mcs(struct brw_context *brw, > struct intel_mipmap_tree *mt); > -- > 2.5.0.342.g44e0223 > > _______ > mesa-dev mailing list > mesa-dev@lists.freedes

Re: [Mesa-dev] [PATCH V2 1/7] i965/gen9: Don't use intel_..._texture_alignment_unit() for linear 1D layout

2015-10-06 Thread Anuj Phogat
This patch caused regressions on master. More work need to be done before we skip computing align_w for linear 1d layouts. Dropping this patch from the series. Rest of the patches still need review. On Wed, Sep 23, 2015 at 4:53 PM, Anuj Phogat wrote: > If gen9_use_linear_1d_layout() returns t

Re: [Mesa-dev] [PATCH 2/3] mesa: remove unused _mesa_create_nameless_texture()

2015-10-08 Thread Anuj Phogat
> - > extern void > _mesa_delete_nameless_texture(struct gl_context *ctx, >struct gl_texture_object *texObj); > -- > 1.9.1 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org >

Re: [Mesa-dev] [PATCH 1/3] mesa: remove unneeded error check in create_textures()

2015-10-08 Thread Anuj Phogat
- assert(targetIndex < NUM_TEXTURE_TARGETS); > texObj->TargetIndex = targetIndex; >} > > -- > 1.9.1 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 3/3] mesa, meta: move gl_texture_object::TargetIndex initializations

2015-10-08 Thread Anuj Phogat
--git a/src/mesa/main/textureview.c b/src/mesa/main/textureview.c > index 5a3282a..04b7d73 100644 > --- a/src/mesa/main/textureview.c > +++ b/src/mesa/main/textureview.c > @@ -681,6 +681,8 @@ _mesa_TextureView(GLuint texture, GLenum target, GLuint > origtexture, > texObj->Immutable = GL_TRUE; > te

Re: [Mesa-dev] [PATCH 1/3] mesa: remove unneeded error check in create_textures()

2015-10-08 Thread Anuj Phogat
On Thu, Oct 8, 2015 at 11:01 AM, Brian Paul wrote: > You tested with all 3 patches and everything's OK now? > > I guess I'd still like an R-b on the 3rd patch ("mesa,meta: move > gl_texture_object::TargetIndex initializations") from someone before > pushing. done. > > -Brian > > > On 10/08/2015 11

Re: [Mesa-dev] [PATCH] i965/gen8: Remove gen<8 checks in gen8 code

2015-10-09 Thread Anuj Phogat
> + if (brw->gen >= 9 || mt->num_samples == 1) > + assert(mt->halign == 16); > } > > uint32_t *surf = allocate_surface_state(brw, &offset, surf_index); > -- > 2.5.0.342.g44e0223 > > ___ > m

Re: [Mesa-dev] [PATCH 1/2] i965: Make feature macros gen8 based

2015-12-29 Thread Anuj Phogat
, \ > + GEN9_HW_INFO > + > + > static const struct brw_device_info brw_device_info_skl_gt1 = { > GEN9_FEATURES, .gt = 1, > .num_slices = 1, > -- > 2.6.4 > > ______

Re: [Mesa-dev] [PATCH 2/2] i965: Put the gt and slice count in the features macro

2015-12-29 Thread Anuj Phogat
vs_threads = 56, > .max_hs_threads = 56, > .max_ds_threads = 56, > -- > 2.6.4 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 01/28] glsl: only add outward facing varyings to resourse list for SSO

2016-01-05 Thread Anuj Phogat
> return; > - if (!add_packed_varyings(shProg, output_stage)) > + if (!add_packed_varyings(shProg, output_stage, GL_PROGRAM_OUTPUT)) > return; > } > > -- > 2.4.3 > > ___ > mesa-dev mai

Re: [Mesa-dev] [PATCH 02/28] glsl: move lowering after matching validation

2016-01-05 Thread Anuj Phogat
return true; > } > > -- > 2.4.3 > > _______ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev LGTM. Reviewed-by: Anuj Phogat Do we have a piglit test hitting this code? ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 03/28] glsl: don't change the varying type in validation code

2016-01-05 Thread Anuj Phogat
r->data.mode = ir_var_auto; > } >} > } > -- > 2.4.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Reviewed-by: Anuj Phogat

Re: [Mesa-dev] [PATCH 04/28] glsl: remove unused varyings before packing them

2016-01-05 Thread Anuj Phogat
demote_shader_inputs_and_outputs(sh_i, ir_var_shader_out); > - demote_shader_inputs_and_outputs(sh_next, ir_var_shader_in); > - > - /* Eliminate code that is now dead due to unused outputs being demoted. > - */ > - while (do_dead_code(sh_i->ir, false)) > - ; > - while (do_dead_code(sh_next->ir, false)) > - ; > - >/* This must be done after all dead varyings are eliminated. */ >if (!check_against_output_limit(ctx, prog, sh_i)) > goto done; > -- > 2.4.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Looks like the right thing to do. Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 06/28] glsl: fix overlapping of varying locations for arrays and structs

2016-01-06 Thread Anuj Phogat
var_slot; > + var_slot += 1; > + } > } > > return slots; > @@ -1671,7 +1727,7 @@ assign_varying_locations(struct gl_context *ctx, >reserved_varying_slot(producer, ir_var_shader_out) | >reserved_varying_slot(consumer, ir_var_shader_in); > > - const unsigned slots_used = matches.assign_locations(reserved_slots, > + const unsigned slots_used = matches.assign_locations(prog, reserved_slots, > > prog->SeparateShader); > matches.store_locations(); > > -- > 2.4.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Acked-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 07/28] glsl: don't try adding build-ins to explicit locations bitmask

2016-01-06 Thread Anuj Phogat
YING_SLOT_VAR0) > continue; > >var_slot = var->data.location - VARYING_SLOT_VAR0; > -- > 2.4.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mes

Re: [Mesa-dev] [PATCH 08/28] glsl: parse component layout qualifier

2016-01-06 Thread Anuj Phogat
te->es_shader && !state->EXT_blend_func_extended_enable) { > _mesa_glsl_error(& @3, state, "index layout qualifier requires > EXT_blend_func_extended"); > -- > 2.4.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 09/28] glsl: validate and store component layout qualifier in GLSL IR

2016-01-06 Thread Anuj Phogat
/** > + * Was an initial component explicitly set in the shader? > + */ > + unsigned explicit_component:1; > + > + /** > * Does this variable have an initializer? > * > * This is used by the linker to cross-validiate initializers of global > -- > 2.4.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 10/28] glsl: fix cross validation for explicit locations on structs and arrays

2016-01-06 Thread Anuj Phogat
t;has no matching output\n", > + _mesa_shader_stage_to_string(consumer->Stage), > + input->name); > + break; > + } > + idx++; > } >

Re: [Mesa-dev] [PATCH 05/28] glsl: create helper to remove outer vertex index array used by some stages

2016-01-06 Thread Anuj Phogat
_type *type = get_varying_type(var, stage); > >if (type->is_array()) { > slots = 1; > -- > 2.4.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 11/28] glsl: cross validate varyings with a component qualifier

2016-01-07 Thread Anuj Phogat
On Mon, Dec 28, 2015 at 9:00 PM, Timothy Arceri wrote: > This change checks for component overlap, including handling overlap of > locations and components by doubles. Previously there was no validation > for assigning explicit locations to a location used by the second half > of a double. > > V2:

Re: [Mesa-dev] [PATCH 12/28] glsl: update explicit location matching to support component qualifier

2016-01-07 Thread Anuj Phogat
> VARYING_SLOT_VAR0]; > + output = explicit_locations[input->data.location - > VARYING_SLOT_VAR0] > +[input->data.location_frac]; > > if (output != NULL){ > input->data.is_unmatched_generic_inout = 0;

Re: [Mesa-dev] [PATCH V3 11/28] glsl: cross validate varyings with a component qualifier

2016-01-07 Thread Anuj Phogat
uble. > > V3: simplify handling of doubles and fix double component aliasing > detection > > V2: fix component matching for matricies > > Cc: Anuj Phogat > --- > src/glsl/link_varyings.cpp | 63 > ++ > 1 file changed, 52

Re: [Mesa-dev] [PATCH 13/28] glsl: include varyings with explicit locations in slot count

2016-01-07 Thread Anuj Phogat
> + _mesa_bitcount_64(reserved_slots); > + > matches.store_locations(); > > for (unsigned i = 0; i < num_tfeedback_decls; ++i) { > -- > 2.4.3 > > ___ > mesa-dev mailing list >

Re: [Mesa-dev] [PATCH 14/28] glsl: pass disable_varying_packing bool to the lowering pass

2016-01-07 Thread Anuj Phogat
ctions, > - &new_variables); > + &new_variables, > + disable_varying_packing); > visitor.run(shader); > if (mode == ir_var_shader_out) { >if (shader->Stage == MESA_SHADER_GEOMETRY) { > -- > 2.4.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 17/28] glsl: enable lowering of varyings with explicit component

2016-01-07 Thread Anuj Phogat
gs_input_vertices, > &new_instructions, > &new_variables, > - disable_varying_packing); > +

Re: [Mesa-dev] [PATCH 5/5] i965/gen9: Don't allow the RGBX formats for texturing/rendering

2016-01-12 Thread Anuj Phogat
ds, > - Neil > _______ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Looks like the right thing to do. Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 18/28] glsl: validate linking of intrastage component qualifiers

2016-01-12 Thread Anuj Phogat
ata.location; >existing->data.explicit_location = true; > } > -- > 2.4.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev R

Re: [Mesa-dev] [PATCH 19/28] glsl: add support for explicit components to frag outputs

2016-01-12 Thread Anuj Phogat
"overlapping location is assigned " > @@ -2614,6 +2665,9 @@ assign_attribute_or_color_locations(gl_shader_program > *prog, > double_storage_locations |= (use_mask << attr); > } > > + assigned[assigned_attr] = var; > + assigned_attr++; > + > continue; >} > > -- > 2.4.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH V2 19/28] glsl: add support for explicit components to frag outputs

2016-01-13 Thread Anuj Phogat
nent. > > Cc: Anuj Phogat > --- > src/glsl/linker.cpp | 72 > + > 1 file changed, 62 insertions(+), 10 deletions(-) > > diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp > index b81bfba..c66dcc4 100644 >

Re: [Mesa-dev] [PATCH V2 19/28] glsl: add support for explicit components to frag outputs

2016-01-13 Thread Anuj Phogat
Timothy, Do you have a branch somewhere with the latest patches? On Wed, Jan 13, 2016 at 10:58 AM, Anuj Phogat wrote: > On Wed, Jan 13, 2016 at 1:19 AM, Timothy Arceri > wrote: >> V2: fix error checking for arrays and components. V1 was >> only taking into account all the arra

Re: [Mesa-dev] [PATCH] texobj: Check completeness with InternalFormat rather than Mesa format

2016-01-13 Thread Anuj Phogat
2.5.0 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev LGTM. Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 20/28] glsl: pack vertex attributes with component layout qualifiers

2016-01-14 Thread Anuj Phogat
der_out) { > if (shader->Stage == MESA_SHADER_GEOMETRY) { > -/* For geometry shaders, outputs need to be lowered before each > - * call to EmitVertex() > +/* For geometry shaders, outputs need to be lowered be

Re: [Mesa-dev] [PATCH 21/28] glsl: pack fragment shader outputs with component layout qualifiers

2016-01-14 Thread Anuj Phogat
disable_varying_packing, > -- > 2.4.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev With the suggested changes: Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 22/28] glsl: get geometry shader vertex count from type when packing

2016-01-14 Thread Anuj Phogat
uts) > { > ir_function *main_func = shader->symbols->get_function("main"); > exec_list void_parameters; > @@ -763,8 +763,15 @@ lower_packed_varyings(void *mem_ctx, unsigned > locations_used, > shader->Stage == MESA_SHADER_TESS_EVAL)) { >exec_list *instructions = shader->ir; >exec_list new_instructions, new_variables; > + > + bool is_outer_array_vert_idx = false; > + if (mode == ir_var_shader_in && > + shader->Stage == MESA_SHADER_GEOMETRY) { > + is_outer_array_vert_idx = true; > + } > + >lower_packed_varyings_visitor visitor(mem_ctx, locations_used, mode, > -gs_input_vertices, > +is_outer_array_vert_idx, > &new_instructions, > &new_variables, > base_location, > -- > 2.4.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 24/28] glsl: make needs_lowering() a shared packing helper function

2016-01-14 Thread Anuj Phogat
s. > -*/ > - const glsl_type *type = var->type->without_array(); > - if (type->vector_elements == 4 && !type->is_double()) > - return false; > - return true; > -} > - > > /** > * Visitor that splices varying packing code before every use of EmitVertex() > -- > 2.4.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 25/28] glsl: move packed varying creation code to a helper

2016-01-14 Thread Anuj Phogat
this->is_outer_array_vert_idx); >unpacked_var->insert_before(packed_var); >this->packed_varyings[slot] = packed_var; > } else { > -- > 2.4.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 27/28] mesa: add LOCATION_COMPONENT support to GetProgramResourceiv

2016-01-14 Thread Anuj Phogat
__ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 15/28] glsl: add support for packing varyings with explicit locations

2016-01-20 Thread Anuj Phogat
On Mon, Dec 28, 2015 at 9:00 PM, Timothy Arceri wrote: > --- > src/glsl/lower_packed_varyings.cpp | 45 > +++--- > 1 file changed, 32 insertions(+), 13 deletions(-) > > diff --git a/src/glsl/lower_packed_varyings.cpp > b/src/glsl/lower_packed_varyings.cpp > index

Re: [Mesa-dev] [PATCH 23/28] glsl: add pack varying to resource list for vertex input / fragment output

2016-01-20 Thread Anuj Phogat
On Mon, Dec 28, 2015 at 9:00 PM, Timothy Arceri wrote: > This is needed now that we pack these type of varyings when they have a > component layout qualifier. > --- > src/glsl/linker.cpp | 15 --- > 1 file changed, 8 insertions(+), 7 deletions(-) > > diff --git a/src/glsl/linker.cpp b

Re: [Mesa-dev] [PATCH 15/28] glsl: add support for packing varyings with explicit locations

2016-01-20 Thread Anuj Phogat
On Wed, Jan 20, 2016 at 1:53 PM, Timothy Arceri wrote: > On Wed, 2016-01-20 at 09:32 -0800, Anuj Phogat wrote: >> On Mon, Dec 28, 2015 at 9:00 PM, Timothy Arceri >> wrote: >> > --- >> > src/glsl/lower_packed_varyings.cpp | 45 >> > +

Re: [Mesa-dev] [PATCH 23/28] glsl: add pack varying to resource list for vertex input / fragment output

2016-01-20 Thread Anuj Phogat
On Wed, Jan 20, 2016 at 1:39 PM, Timothy Arceri wrote: > On Wed, 2016-01-20 at 10:06 -0800, Anuj Phogat wrote: >> On Mon, Dec 28, 2015 at 9:00 PM, Timothy Arceri >> wrote: >> > This is needed now that we pack these type of varyings when they >> > have

Re: [Mesa-dev] [PATCH 23/28] glsl: add pack varying to resource list for vertex input / fragment output

2016-01-21 Thread Anuj Phogat
On Wed, Jan 20, 2016 at 4:28 PM, Timothy Arceri wrote: > On Wed, 2016-01-20 at 15:38 -0800, Anuj Phogat wrote: >> On Wed, Jan 20, 2016 at 1:39 PM, Timothy Arceri >> wrote: >> > On Wed, 2016-01-20 at 10:06 -0800, Anuj Phogat wrote: >> > > On Mon, Dec

Re: [Mesa-dev] [PATCH 23/28] glsl: add pack varying to resource list for vertex input / fragment output

2016-01-21 Thread Anuj Phogat
On Thu, Jan 21, 2016 at 1:47 PM, Timothy Arceri wrote: > On Thu, 2016-01-21 at 09:23 -0800, Anuj Phogat wrote: >> On Wed, Jan 20, 2016 at 4:28 PM, Timothy Arceri >> wrote: >> > On Wed, 2016-01-20 at 15:38 -0800, Anuj Phogat wrote: >> > > On Wed, Jan

Re: [Mesa-dev] [PATCH 23/28] glsl: add pack varying to resource list for vertex input / fragment output

2016-01-22 Thread Anuj Phogat
On Thu, Jan 21, 2016 at 3:49 PM, Timothy Arceri wrote: > On Thu, 2016-01-21 at 15:28 -0800, Anuj Phogat wrote: >> On Thu, Jan 21, 2016 at 1:47 PM, Timothy Arceri >> wrote: >> > On Thu, 2016-01-21 at 09:23 -0800, Anuj Phogat wrote: >> > > On Wed, Jan

Re: [Mesa-dev] [PATCH] i965: Define miptree map functions static (trivial)

2016-02-02 Thread Anuj Phogat
On Tue, Feb 2, 2016 at 2:51 PM, Ben Widawsky wrote: > They were already declared as such. It was changed here: > commit 31f0967fb50101437d2568e9ab9640ffbcbf7ef9 > Author: Ian Romanick > Date: Wed Sep 2 14:43:18 2015 -0700 > > i965: Make intel_miptree_map_raw static > > Cc: Ian Romanick > S

Re: [Mesa-dev] [Mesa-stable] [PATCH] meta: Fix the pbo usage in meta for GLES{1, 2} contexts

2016-02-04 Thread Anuj Phogat
On Thu, Feb 4, 2016 at 3:21 AM, Emil Velikov wrote: > Hi Anuj, > > On 24 December 2015 at 21:04, Anuj Phogat wrote: >> OpenGL ES 1.0 doesn't support using GL_STREAM_DRAW and both >> ES 1.0 and 2.0 don't support GL_STREAM_READ in glBufferData(). >> S

Re: [Mesa-dev] [PATCH V3 16/28] glsl: add packing rules for tessellation stages to the packing code

2016-02-04 Thread Anuj Phogat
it locations. > > V3: Don't remove rules from the varying linking code as we need to > disable packing in the producer if the consumer is a TCS. > > V2: move the tessellation packing rules, allow TES output to be packed. > > Cc: Anuj Phogat > --- > src/

Re: [Mesa-dev] [PATCH] meta: Fix the pbo usage in meta for GLES{1, 2} contexts

2016-02-05 Thread Anuj Phogat
On Fri, Feb 5, 2016 at 11:30 AM, Ian Romanick wrote: > > On 12/24/2015 01:04 PM, Anuj Phogat wrote: > > OpenGL ES 1.0 doesn't support using GL_STREAM_DRAW and both > > ES 1.0 and 2.0 don't support GL_STREAM_READ in glBufferData(). > > So, handle it correct

Re: [Mesa-dev] [PATCH 01/11] mesa: Refactor _mesa_framebuffer_renderbuffer

2016-02-05 Thread Anuj Phogat
ramebuffer_renderbuffer(struct gl_context *ctx, > struct gl_framebuffer *fb, > GLenum attachment, > - struct gl_renderbuffer *rb, > - const char *func); > +

Re: [Mesa-dev] [PATCH 01/11] mesa: Refactor _mesa_framebuffer_renderbuffer

2016-02-05 Thread Anuj Phogat
On Fri, Feb 5, 2016 at 3:04 PM, Anuj Phogat wrote: > On Fri, Feb 5, 2016 at 1:04 PM, Ian Romanick wrote: >> From: Ian Romanick >> >> This function previously was only used in fbobject.c and contained a >> bunch of API validation. Split the function into >>

[Mesa-dev] [V2 PATCH] meta: Fix the pbo usage in meta for GLES{1, 2} contexts

2016-02-09 Thread Anuj Phogat
manick Cc: "11.1" Signed-off-by: Anuj Phogat --- src/mesa/drivers/common/meta_tex_subimage.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/mesa/drivers/common/meta_tex_subimage.c b/src/mesa/drivers/common/meta_tex_subimage.c index 4adaad7..

Re: [Mesa-dev] [PATCH] i965: Unhardcode a few more stage names and abbreviations.

2015-04-27 Thread Anuj Phogat
\ > @@ -1722,7 +1720,7 @@ vec4_visitor::run() > if (unlikely(INTEL_DEBUG & DEBUG_OPTIMIZER)) { >char filename[64]; >snprintf(filename, 64, "%s-%04d-00-start", > - stage_name, shader_prog ? shade

Re: [Mesa-dev] [PATCH 01/38] main: Add utility function _mesa_lookup_framebuffer_err.

2015-04-27 Thread Anuj Phogat
ture_renderbuffer(struct gl_context *ctx, > -- > 2.1.0 > > _______ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev With Fredrik's comment fixed: Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/3] mesa: remove unused options var in compile_shader()

2015-04-28 Thread Anuj Phogat
ot raise a GL_ERROR. > -- > 1.9.1 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Series is: Reviewed-by: Anuj Phogat __

Re: [Mesa-dev] [PATCH 01/18] i965: Refactor rb surface setup to allow caller to store offsets

2015-04-29 Thread Anuj Phogat
urface_state(brw, &brw->wm.base.surf_offset[surf_index]); > + uint32_t *surf = allocate_surface_state(brw, &offset); > > surf[0] = (surf_type << BRW_SURFACE_TYPE_SHIFT) | > (is_array ? GEN7_SURFACE_IS_ARRAY : 0) | > @@ -423,7 +421,7 @@ gen8_update_ren

Re: [Mesa-dev] [PATCH 01/18] i965: Refactor rb surface setup to allow caller to store offsets

2015-04-29 Thread Anuj Phogat
On Wed, Apr 29, 2015 at 12:17 PM, Matt Turner wrote: > On Wed, Apr 29, 2015 at 11:05 AM, Anuj Phogat wrote: >> With Matt's comments fixed: >> Reviewed-by: Anuj Phogat > > So you know, Ken and I have both reviewed this series now. Unless you > just want to review

Re: [Mesa-dev] [PATCH] i965/ps: Use SET_FIELD() for sampler count

2015-04-29 Thread Anuj Phogat
0, 16), 4); > + dw3 |= SET_FIELD(sampler_count, GEN7_PS_SAMPLER_COUNT); > > /* BRW_NEW_FS_PROG_DATA */ > dw3 |= > -- > 1.9.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 01/20] glsl: Silence unused parameter warnings

2015-04-29 Thread Anuj Phogat
ow_major) { >assert(type->is_record()); >if (this->ubo_block_index == -1) > @@ -564,7 +564,7 @@ private: > > virtual void visit_field(const glsl_type *type, const char *name, > bool row_major, const glsl_ty

Re: [Mesa-dev] [PATCH 12/20] glsl/es3.1: Allow interger mix built-ins in GLSL ES 3.10

2015-04-29 Thread Anuj Phogat
In patch heading: s/interger/integer On Wed, Apr 29, 2015 at 4:26 PM, Ian Romanick wrote: > From: Ian Romanick > > Signed-off-by: Ian Romanick > --- > src/glsl/builtin_functions.cpp | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/src/glsl/builtin_functions.cpp b/src/

Re: [Mesa-dev] [PATCH 12/20] glsl/es3.1: Allow interger mix built-ins in GLSL ES 3.10

2015-04-29 Thread Anuj Phogat
On Wed, Apr 29, 2015 at 5:38 PM, Anuj Phogat wrote: > In patch heading: s/interger/integer > > On Wed, Apr 29, 2015 at 4:26 PM, Ian Romanick wrote: >> From: Ian Romanick >> >> Signed-off-by: Ian Romanick >> --- >> src/glsl/builtin_functions.cpp | 3 ++-

Re: [Mesa-dev] [PATCH 0/3] Simple Klocwork patches.

2015-05-05 Thread Anuj Phogat
tions(+), 32 deletions(-) > > -- > 1.8.5.1 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Series is: Reviewed-by: Anuj Phogat __

Re: [Mesa-dev] [PATCH 00/13] Fix context creation error handling

2015-05-05 Thread Anuj Phogat
| 16 +++--- > 13 files changed, 132 insertions(+), 41 deletions(-) > > -- > 1.8.5.1 > > ___________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Patches 1-12 are: Reviewed-by: A

Re: [Mesa-dev] [PATCH] i965: Change the order of conditions tested in if

2015-05-06 Thread Anuj Phogat
On Wed, May 6, 2015 at 2:19 PM, Matt Turner wrote: > On Wed, Apr 15, 2015 at 11:46 AM, Anuj Phogat wrote: >> Reduces the number of conditions tested in if to one in case of >> non-integer formats. Makes no functional changes. >> >> Signed-off-by: Anuj Phogat >>

[Mesa-dev] [PATCH] i965: Remove unused variables

2015-05-06 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/brw_cs.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_cs.cpp b/src/mesa/drivers/dri/i965/brw_cs.cpp index e2f3d63..70731e4 100644 --- a/src/mesa/drivers/dri/i965/brw_cs.cpp +++ b/src/mesa/drivers

Re: [Mesa-dev] [PATCH] i965/skl: In opt_sampler_eot always set destination register to null

2015-05-07 Thread Anuj Phogat
>insert_before(cfg->blocks[cfg->num_blocks - 1], > new_load_payload); > tex_inst->src[0] = send_header; > - tex_inst->dst = reg_null_ud; > > return true; > } > -- > 1.9.3 > > ___ > mesa-dev ma

Re: [Mesa-dev] [PATCH] i965/fs: Set the header_size on LOAD_PAYLOAD in opt_sampler_eot

2015-05-07 Thread Anuj Phogat
ad); > -- > 1.9.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [Mesa-stable] [PATCH] i965: Fix PBO cache coherency issue after _mesa_meta_pbo_GetTexSubImage().

2015-05-12 Thread Anuj Phogat
intelReadPixels() for a more detailed > + * explanation. > + */ > + intel_batchbuffer_emit_mi_flush(brw); > return; > + } > >perf_debug("%s: fallback to CPU mapping in PBO case\n", __func__); > } > -- > 2.3.5 &

Re: [Mesa-dev] [PATCH V2 01/22] meta: Enable _mesa_meta_pbo_GetTexSubImage() to read in to non-pbo buffers

2015-05-15 Thread Anuj Phogat
On Tue, Apr 21, 2015 at 3:20 PM, Neil Roberts wrote: > > Anuj Phogat writes: > > > This will allow Skylake to use _mesa_meta_pbo_GetTexSubImage() for reading > > YF/YS > > tiled surfaces. > > > > V2: Make changes suggested by Neil. > > > &g

Re: [Mesa-dev] [PATCH V2 17/22] i965/gen9: Add XY_FAST_COPY_BLT support to intelEmitCopyBlit()

2015-05-21 Thread Anuj Phogat
On Thu, May 21, 2015 at 12:26 PM, Ben Widawsky wrote: > A lot of opinion stuff is below, feel free to ignore them if you don't think > there are improvements. > > On Fri, Apr 17, 2015 at 04:51:38PM -0700, Anuj Phogat wrote: >> This patch enables using XY_FAST_COPY_BLT only

Re: [Mesa-dev] [PATCH V2 17/22] i965/gen9: Add XY_FAST_COPY_BLT support to intelEmitCopyBlit()

2015-05-21 Thread Anuj Phogat
On Thu, May 21, 2015 at 1:51 PM, Matt Turner wrote: > On Thu, May 21, 2015 at 12:26 PM, Ben Widawsky wrote: >> A lot of opinion stuff is below, feel free to ignore them if you don't think >> there are improvements. >> >> On Fri, Apr 17, 2015 at 04:51:38PM -0700, A

Re: [Mesa-dev] [PATCH V2 21/22] i965/gen9: Plugin the code for selecting YF/YS tiling on skl+

2015-05-22 Thread Anuj Phogat
On Thu, May 21, 2015 at 4:33 PM, Ben Widawsky wrote: > On Fri, Apr 17, 2015 at 04:51:42PM -0700, Anuj Phogat wrote: >> Note: Yf/Ys tiling stays disabled to avoid any piglit regressions. I'm >> working on fixing the remaining piglit failures. >> >> We need to do s

Re: [Mesa-dev] [PATCH V2 22/22] i965/gen9: Disable Mip Tail for YF/YS tiled surfaces

2015-05-22 Thread Anuj Phogat
On Thu, May 21, 2015 at 4:55 PM, Ben Widawsky wrote: > On Fri, Apr 17, 2015 at 04:51:43PM -0700, Anuj Phogat wrote: >> This fixed the buffer corruption happening in a FBO which use YF/YS >> tiled renderbuffer or texture as color attachment. >> >> Spec recommends disa

Re: [Mesa-dev] [PATCH V2 17/22] i965/gen9: Add XY_FAST_COPY_BLT support to intelEmitCopyBlit()

2015-05-22 Thread Anuj Phogat
On Thu, May 21, 2015 at 5:46 PM, Anuj Phogat wrote: > On Thu, May 21, 2015 at 12:26 PM, Ben Widawsky wrote: >> A lot of opinion stuff is below, feel free to ignore them if you don't think >> there are improvements. >> >> On Fri, Apr 17, 2015 at 04:51:38PM -0700, A

Re: [Mesa-dev] [PATCH V2 17/22] i965/gen9: Add XY_FAST_COPY_BLT support to intelEmitCopyBlit()

2015-05-27 Thread Anuj Phogat
On Wed, May 27, 2015 at 10:42 AM, Ben Widawsky wrote: > On Thu, May 21, 2015 at 05:46:48PM -0700, Anuj Phogat wrote: >> On Thu, May 21, 2015 at 12:26 PM, Ben Widawsky wrote: > > SNIP > >> > As I mentioned above wrt the CL alignment, I think it's safe to do for

Re: [Mesa-dev] [PATCH V2 07/22] i965/gen9: Set horizontal alignment for the miptree

2015-05-27 Thread Anuj Phogat
On Wed, May 27, 2015 at 11:56 AM, Ben Widawsky wrote: > On Fri, Apr 17, 2015 at 04:51:28PM -0700, Anuj Phogat wrote: >> Signed-off-by: Anuj Phogat >> --- >> src/mesa/drivers/dri/i965/brw_tex_layout.c | 80 >> ++ >> 1 file changed, 80

Re: [Mesa-dev] [PATCH V2 09/22] i965/gen9: Set vertical alignment for the miptree

2015-05-27 Thread Anuj Phogat
On Wed, May 27, 2015 at 12:04 PM, Ben Widawsky wrote: > On Fri, Apr 17, 2015 at 04:51:30PM -0700, Anuj Phogat wrote: >> Signed-off-by: Anuj Phogat >> --- >> src/mesa/drivers/dri/i965/brw_tex_layout.c | 74 >> ++ >> 1 file changed, 74

Re: [Mesa-dev] [PATCH 1/6] i965: Consolidate certain miptree params to flags

2015-05-28 Thread Anuj Phogat
layout_flags); > if (intel_image->mt == NULL) > return; > intel_image->mt->target = target; > @@ -255,8 +254,7 @@ intelSetTexBuffer2(__DRIcontext *pDRICtx, GLint target, >rb->Base.Base.Width, >rb-&

<    4   5   6   7   8   9   10   11   12   13   >