[Mesa-dev] [PATCH 1/3] mesa: Set initial internal format of a texture to GL_RGBA

2014-03-03 Thread Anuj Phogat
>From OpenGL 4.0 spec, page 398: "The initial internal format of a texel array is RGBA instead of 1. TEXTURE_COMPONENTS is deprecated; always use TEXTURE_INTERNAL_FORMAT." Fixes Khronos OpenGL CTS test failure: proxy_textures_invalid_size Cc: Signed-off-by: Anuj Phogat

[Mesa-dev] [PATCH 2/3] mesa: Use clear_teximage_fields() in place of _mesa_init_teximage_fields()

2014-03-03 Thread Anuj Phogat
This patch makes no functional changes to the code. Signed-off-by: Anuj Phogat --- src/mesa/main/teximage.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 0519d22..1cd6ade 100644 --- a/src/mesa/main/teximage.c

[Mesa-dev] [PATCH 3/3] mesa: Allow GL_DEPTH_COMPONENT and GL_DEPTH_STENCIL combinations in glTexImage{123}D()

2014-03-03 Thread Anuj Phogat
ATION is generated if one of the base internal format and format is DEPTH_COMPONENT or DEPTH_STENCIL, and the other is neither of these values." Fixes Khronos OpenGL CTS test failure: proxy_textures_invalid_size Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/teximage.c | 13

Re: [Mesa-dev] [PATCH] mesa: new init_teximage_fields_ms() function to init MS texture images

2014-03-04 Thread Anuj Phogat
plelocations; > + init_teximage_fields_ms(ctx, texImage, width, height, depth, 0, > + internalformat, texFormat, > + samples, fixedsamplelocations); > >if (width > 0 && height > 0 && depth > 0) { >

Re: [Mesa-dev] [PATCH] i965: Enable EWA anisotropic filtering algorithm

2014-03-04 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] mesa: fix unpack_ubyte_ARGB4444_REV()

2014-03-05 Thread Anuj Phogat
) & 0xf); > } > } > > -- > 1.7.10.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] [Mesa-stable] [PATCH] mesa: fix copy & paste bugs in pack_ubyte_SARGB8()

2014-03-06 Thread Anuj Phogat
gt; -- > 1.7.10.4 > > ___ > mesa-stable mailing list > mesa-sta...@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-stable 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/11] meta: De-static setup_texture_coords().

2014-03-06 Thread Anuj Phogat
GLfloat coords2[4], > + GLfloat coords3[4]); > + > struct temp_texture * > _mesa_meta_get_temp_texture(struct gl_context *ctx); > > -- > 1.9.0 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev This Series is: Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] glsl: Allow overlapping locations for vertex input attributes

2014-03-10 Thread Anuj Phogat
nly on vertex shader input attributes in OpenGL (2.0 and above) and OpenGL ES 2.0. - It is explictly disallowed in OpenGL ES 3.0. Fixes Khronos CTS failing test: explicit_attrib_location_vertex_input_aliased.test See more details about this at below mentioned khronos bug. Signed-off-by: Anuj Pho

[Mesa-dev] [PATCH] glsl: Fix copy-paste error in linker_warning()

2014-03-10 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- src/glsl/linker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index f6b2661..a619bc8 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -297,7 +297,7 @@ linker_warning(gl_shader_program

Re: [Mesa-dev] [Mesa-stable] [PATCH] glsl: Allow overlapping locations for vertex input attributes

2014-03-10 Thread Anuj Phogat
On Mon, Mar 10, 2014 at 3:27 PM, Ian Romanick wrote: > On 03/10/2014 11:19 AM, Anuj Phogat wrote: > > Currently overlapping locations of input variables are not allowed for > all > > the shader types in OpenGL and OpenGL ES. > > > >>From OpenGL ES 3.0 spec, page

[Mesa-dev] [PATCH] mesa: Add an error condition in glGetFramebufferAttachmentParameteriv()

2014-03-11 Thread Anuj Phogat
does not have a single format." Fixes Khronos CTS test: packed_depth_stencil_parameters.test Signed-off-by: Anuj Phogat Cc: Khronos Bug# 9170 Signed-off-by: Anuj Phogat --- src/mesa/main/fbobject.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/mesa/main/fbobject

[Mesa-dev] [PATCH] mesa: Fix glGetVertexAttribi(GL_VERTEX_ATTRIB_ARRAY_SIZE)

2014-03-12 Thread Anuj Phogat
mesa currently returns 4 when GL_VERTEX_ATTRIB_ARRAY_SIZE is queried for a vertex array initially set up with size=GL_BGRA. This patch makes changes to return size=GL_BGRA as required by the spec. Fixes Khronos OpenGL CTS test: vertex_array_bgra_basic.test Signed-off-by: Anuj Phogat Cc

[Mesa-dev] [PATCH V2] mesa: Fix error code generation in glReadPixels()

2014-03-12 Thread Anuj Phogat
n the error INVALID_OPERATION occurs. If the type parameter is not UNSIGNED_INT_24_8 or FLOAT_32_UNSIGNED_INT_24_8_REV, then the error INVALID_ENUM occurs." Fixes failing Khronos CTS test packed_depth_stencil_error.test V2: Avoid code duplication Cc: Signed-off-by: Anuj Phogat ---

[Mesa-dev] [PATCH V2] mesa: Fix glGetVertexAttribi(GL_VERTEX_ATTRIB_ARRAY_SIZE)

2014-03-12 Thread Anuj Phogat
ing a new variable Signed-off-by: Anuj Phogat Cc: --- src/mesa/main/varray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index b4b6fa9..479d872 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -738,7 +73

Re: [Mesa-dev] [Mesa-stable] [PATCH] glsl: Allow overlapping locations for vertex input attributes

2014-03-13 Thread Anuj Phogat
On Tue, Mar 11, 2014 at 10:37 AM, Ian Romanick wrote: > On 03/10/2014 04:15 PM, Anuj Phogat wrote: > > > > > > > > On Mon, Mar 10, 2014 at 3:27 PM, Ian Romanick > <mailto:i...@freedesktop.org>> wrote: > > > > On 03/10/2014 11:19 AM,

Re: [Mesa-dev] [PATCH] glapi: restore _glthread_GetID() function

2014-03-15 Thread Anuj Phogat
should not be used anymore. > + * It's only present to satisfy linking with older versions of libGL. > + */ > +unsigned long > +_glthread_GetID(void) > +{ > + return 0; > +} > + > void > _glapi_noop_enable_warnings(unsigned char enable) > { I hit this issue ear

Re: [Mesa-dev] [PATCH] gen6-gen7: disable dithering for GL_RGB10_A2 render buffers

2014-03-15 Thread Anuj Phogat
rw_context *brw) >} > >/* _NEW_COLOR */ > - if (ctx->Color.DitherFlag && !integer) { > + if (ctx->Color.DitherFlag && !integer && > + rb_internal_format != GL_RGB10_A2) { > blend[b].blend1.dither_enable = 1; > blend[b]

Re: [Mesa-dev] [PATCH V3 1/4] glsl: Compile error if fs defines conflicting qualifiers for gl_FragCoord

2014-03-17 Thread Anuj Phogat
Identified 2 bugs in patches 1/4 and 3/4. Will send out V4 of the series with fixes. On Fri, Feb 28, 2014 at 11:53 AM, Anuj Phogat wrote: > GLSL 1.50 spec says: >"If gl_FragCoord is redeclared in any fragment shader in a program, > it must be redeclared in all the fragm

[Mesa-dev] [PATCH V4 3/4] glsl: Link error if fs defines conflicting qualifiers for gl_FragCoord

2014-03-17 Thread Anuj Phogat
fragment shader 2: in vec4 gl_FragCoord; void foo() { ... } Signed-off-by: Anuj Phogat Cc: --- src/glsl/ast_to_hir.cpp | 5 +++ src/glsl/glsl_parser_extras.cpp | 16 + src/glsl/glsl_parser_extras.h | 1 + src/glsl/linker.cpp

[Mesa-dev] [PATCH V4 2/4] glsl: Compile error if fs uses gl_FragCoord before first redeclaration

2014-03-17 Thread Anuj Phogat
ord; void main() { } Signed-off-by: Anuj Phogat Cc: --- src/glsl/ast_to_hir.cpp | 17 + 1 file changed, 17 insertions(+) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index b241ccf..f3ff77a 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp

[Mesa-dev] [PATCH V4 4/4] glsl: Apply the link error conditions to GL_ARB_fragment_coord_conventions

2014-03-17 Thread Anuj Phogat
m that have a static use of gl_FragCoord. All redeclarations of gl_FragCoord in all fragment shaders in a single program must have the same set of qualifiers." Signed-off-by: Anuj Phogat Cc: --- src/glsl/glsl_parser_extras.cpp | 2 ++ src/glsl/linker.cpp | 7 ++-

[Mesa-dev] [PATCH V4 1/4] glsl: Compile error if fs defines conflicting qualifiers for gl_FragCoord

2014-03-17 Thread Anuj Phogat
_FragCoord; layout(origin_upper_left, pixel_center_integer) in vec4 gl_FragCoord; V3: Simplify function is_conflicting_fragcoord_redeclaration() V4: Check for null pointer before doing strcmp(var->name, "gl_FragCoord"). Signed-off-by: Anuj Phogat Cc: --- src/glsl/ast_

Re: [Mesa-dev] [PATCH 1/2] glsl: Expose pack/unpack built-ins for ARB_gpu_shader5.

2014-03-18 Thread Anuj Phogat
ckUnorm4x8", _unpackUnorm4x8(shader_packing), > NULL); > - add_function("unpackSnorm4x8", _unpackSnorm4x8(shader_packing), > NULL); > + add_function("unpackUnorm4x8", > _unpackUnorm4x8(shade

Re: [Mesa-dev] [PATCH 1/4] i965: Print number of multisamples in INTEL_DEBUG=blorp output.

2014-03-21 Thread Anuj Phogat
num_samples, _mesa_get_format_name(dst_mt->format), dst_mt, > dst_level, dst_layer, dst_x0, dst_y0, dst_x1, dst_y1, > mirror_x, mirror_y); > > -- > 1.9.0 > > ___ > mesa-dev mailing list

Re: [Mesa-dev] [PATCH 1/2] mesa: Move TextureView layer error checks before dimension checking.

2014-03-21 Thread Anuj Phogat
(invalid texture > size)"); > + return; > + } > + > /* If the new texture's target is TEXTURE_CUBE_MAP or > * TEXTURE_CUBE_MAP_ARRAY, the width and height of the original texture's > * levels must be equal otherwise the error INVALID_OPERATI

Re: [Mesa-dev] [PATCH] i965: Drop BLT TexSubImage Y-tiling restriction on Gen6+.

2014-03-21 Thread Anuj Phogat
Object->Target != GL_TEXTURE_2D) > -- > 1.9.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

[Mesa-dev] [PATCH 08/10] mesa: Add new helper function _mesa_unpack_depth_stencil_row()

2014-03-21 Thread Anuj Phogat
This patch makes non-functional changes in the code. New helper function added here will make it easier to support more data types in the following patches. Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/format_unpack.c | 24 src/mesa/main/format_unpack.h | 5

[Mesa-dev] [PATCH 07/10] mesa: Remove redundant if checks in _mesa_texstore_xx_xx() functions

2014-03-21 Thread Anuj Phogat
This patch contains non-functional changes. Assertion checks made earlier in the functions make the if checks redundant. So, remove the if checks and unindent the code in if block. Signed-off-by: Anuj Phogat --- src/mesa/main/texstore.c | 170 ++- 1

[Mesa-dev] [PATCH 04/10] i965: Fix crash in do_blit_readpixels()

2014-03-21 Thread Anuj Phogat
Fixes a crash in Khronos CTS packed_pixels tests. Cc: Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/intel_pixel_read.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_pixel_read.c b/src/mesa/drivers/dri/i965/intel_pixel_read.c index

[Mesa-dev] [PATCH 01/10] mesa: Add entry for extension ARB_texture_stencil8

2014-03-21 Thread Anuj Phogat
Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/mtypes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index a0d893c..0b754b1 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -3535,6 +3535,7 @@ struct gl_extensions

[Mesa-dev] [PATCH 06/10] mesa: Allow srcFormat=GL_DEPTH_STENCIL in _mesa_texstore_xx_xx() functions

2014-03-21 Thread Anuj Phogat
_mesa_texstore_z24_s8() and _mesa_texstore_z32f_x24s8() are capable of handling GL_DEPTH_STENCIL format. So, allow it in both the functions. Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/texstore.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mesa/main

[Mesa-dev] [PATCH 05/10] mesa: Add missing types in _mesa_texstore_xx_xx() functions

2014-03-21 Thread Anuj Phogat
Depth-stencil teture targets are allowed to use source data of type GL_UNSIGNED_INT_24_8_EXT and GL_FLOAT_32_UNSIGNED_INT_24_8_REV. Fixes few crashes in Khronos OpenGL CTS packed_pixels tests. Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/texstore.c | 8 ++-- 1 file changed, 6

[Mesa-dev] [PATCH 02/10] mesa: Add error condition for format=STENCIL_INDEX in glGetTexImage()

2014-03-21 Thread Anuj Phogat
>From OpenGL 4.0 spec, page 306: "Calling GetTexImage with a format of STENCIL_INDEX causes the error INVALID_ENUM." Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/texgetimage.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/mesa/main/texgetimage.c b/

[Mesa-dev] [PATCH 10/10] mesa: Allow FLOAT_32_UNSIGNED_INT_24_8_REV in get_tex_depth_stencil()

2014-03-21 Thread Anuj Phogat
Fixes a crash in Khronos OpenGL CTS packed_pixels tests. Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/texgetimage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index 7129d4c..733985b 100644 --- a/src/mesa

[Mesa-dev] [PATCH 09/10] mesa: Add support to unpack depth-stencil texture in to FLOAT_32_UNSIGNED_INT_24_8_REV

2014-03-21 Thread Anuj Phogat
Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/format_unpack.c | 79 ++- src/mesa/main/format_unpack.h | 5 +++ 2 files changed, 83 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c index 7abbe46

[Mesa-dev] [PATCH 03/10] mesa: Add error condition for integer formats in glGetTexImage()

2014-03-21 Thread Anuj Phogat
" Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/texgetimage.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index 488b678..2bf0fb4 100644 --- a/src/mesa/main/texgetimage.c +++ b/src/mesa/main/tex

[Mesa-dev] [PATCH V2] glsl: Allow overlapping locations for vertex input attributes

2014-03-24 Thread Anuj Phogat
here location exceeds the maximum allowed attribute location. Signed-off-by: Anuj Phogat Cc: "9.2 10.0 10.1" Bugzilla: Khronos #9609 --- src/glsl/linker.cpp | 91 - 1 file changed, 76 insertions(+), 15 deletions(-) diff --git a/src/gls

Re: [Mesa-dev] [Mesa-stable] [PATCH] glsl: Allow overlapping locations for vertex input attributes

2014-03-24 Thread Anuj Phogat
Sent out a V2 of this patch which fixes a bug I noticed recently. On Thu, Mar 13, 2014 at 3:39 PM, Anuj Phogat wrote: > > > > On Tue, Mar 11, 2014 at 10:37 AM, Ian Romanick wrote: >> >> On 03/10/2014 04:15 PM, Anuj Phogat wrote: >> > >> > >> >

Re: [Mesa-dev] [PATCH 01/10] mesa: Add entry for extension ARB_texture_stencil8

2014-03-25 Thread Anuj Phogat
On Tue, Mar 25, 2014 at 11:41 AM, Ian Romanick wrote: > On 03/21/2014 03:01 PM, Anuj Phogat wrote: >> Cc: > > Why is this tagged for stable? [Patch 2 / 10] is a bug fix tagged for stable and it requires this change. > >> Signed-off-by: Anuj Phogat >> --- >>

[Mesa-dev] [PATCH 2.5/10] mesa: Add helper function _mesa_is_format_integer()

2014-03-25 Thread Anuj Phogat
This function will be used in the following patch. Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/formats.c | 9 + src/mesa/main/formats.h | 3 +++ 2 files changed, 12 insertions(+) diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c index fb2501c..5c67011 100644 --- a

[Mesa-dev] [PATCH V2 03/10] mesa: Add error condition for integer formats in glGetTexImage()

2014-03-25 Thread Anuj Phogat
" V2: Use helper function _mesa_is_format_integer() Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/texgetimage.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index 488b678..2747540 100644 --- a/src

[Mesa-dev] [PATCH V2 09/10] mesa: Add support to unpack depth-stencil texture in to FLOAT_32_UNSIGNED_INT_24_8_REV

2014-03-25 Thread Anuj Phogat
V2: Follow the new naming convention for unpack functions. Use double precision for converting Z24 to a float. Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/format_unpack.c | 86 ++- src/mesa/main/format_unpack.h | 5 +++ 2 files changed, 90

[Mesa-dev] [PATCH V3 03/10] mesa: Add error condition for integer formats in glGetTexImage()

2014-03-25 Thread Anuj Phogat
" V2: Use helper function _mesa_is_format_integer() Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/texgetimage.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index 488b678..754c365 100644 --- a/src/mesa/main/texgetima

[Mesa-dev] [PATCH V3 09/10] mesa: Add support to unpack depth-stencil texture in to FLOAT_32_UNSIGNED_INT_24_8_REV

2014-03-25 Thread Anuj Phogat
V2: Follow the new naming convention for unpack functions. Use double precision for converting Z24 to a float. V3: Unpack stencil value to most significant byte. Use 'struct z32f_x24s8' type. Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/format_unp

[Mesa-dev] [PATCH V4 09/10] mesa: Add support to unpack depth-stencil texture in to FLOAT_32_UNSIGNED_INT_24_8_REV

2014-03-26 Thread Anuj Phogat
il packing. Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/format_unpack.c | 83 ++- src/mesa/main/format_unpack.h | 5 +++ 2 files changed, 87 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c ind

Re: [Mesa-dev] [PATCH] i965: disable blorp's linear filtering on SNB

2014-03-28 Thread Anuj Phogat
On Thu, Mar 27, 2014 at 1:29 AM, Samuel Iglesias Gonsalvez wrote: > Commit 079bdba05f870807d3ed77fa3093cdb7727aa2fd enabled the use of BLORP > engine for single sample scaled blit with bilinear filter. > > However piglit fails when running fbo-blit-stretch test on SandyBridge. > This patch makes t

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

2014-12-03 Thread Anuj Phogat
NG, "No EGL platform enabled."); >return EGL_FALSE; > } > } > -- > 2.0.4 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Review

Re: [Mesa-dev] [PATCH 2/3] glcpp: Disallow undefining GL_* builtin macros.

2014-12-04 Thread Anuj Phogat
"GL_", $4, 3) == 0) > glcpp_error(& @1, parser, "Built-in (pre-defined)" > " macro names can not be undefined."); > > -- > 2.1.3 > > _______ > mesa-dev mailing list > mesa-dev@lis

Re: [Mesa-dev] [PATCH 01/11] mesa: put extern "C" in header files

2014-12-15 Thread Anuj Phogat
4 > --- a/src/mesa/main/texobj.h > +++ b/src/mesa/main/texobj.h > @@ -38,6 +38,11 @@ > #include "samplerobj.h" > > > +#ifdef __cplusplus > +extern "C" { > +#endif > + > + > /** > * \name Internal functions > */ > @@

Re: [Mesa-dev] [PATCH 02/41] main: Created a standard function that looks up a texture object by its ID and throws INVALID_OPERATION if the ID isn't in the hash table.

2014-12-17 Thread Anuj Phogat
Keep the subject of commit message short (under 50 chars) and use present tense. Here you can use "mesa: Add utility function _mesa_lookup_texture_error()". On Tue, Dec 16, 2014 at 6:52 AM, Laura Ekstrand wrote: > Most ARB_DIRECT_STATE_ACCESS functions take an object's ID and use it to look > up

Re: [Mesa-dev] [PATCH 03/41] i965: intel_tex_image.c now accepts TEXTURE_CUBE_MAP as a valid target.

2014-12-17 Thread Anuj Phogat
How about using below subject? i965: intel_get_tex_image() now accepts TEXTURE_CUBE_MAP as a valid target It's more specific than using a file name. I'll leave it up to you if you want to make this change. On Tue, Dec 16, 2014 at 6:52 AM, Laura Ekstrand wrote: > ARB_DIRECT_STATE_ACCESS permits t

Re: [Mesa-dev] [PATCH 12/41] main: Added entry points for glTextureSubImage*D.

2014-12-29 Thread Anuj Phogat
On Tue, Dec 16, 2014 at 6:52 AM, Laura Ekstrand wrote: > --- > src/mapi/glapi/gen/ARB_direct_state_access.xml | 36 +++ > src/mesa/main/teximage.c | 343 > +++-- > src/mesa/main/teximage.h | 30 +++ > 3 files changed, 333 insertio

Re: [Mesa-dev] [PATCH 00/41] ARB_direct_state_access texture functions

2014-12-30 Thread Anuj Phogat
Your adsa-textures branch on fdo fails make check. On Tue, Dec 16, 2014 at 6:52 AM, Laura Ekstrand wrote: > This implements all of the texture functions for ARB_direct_state_access, > with the exception of glTextureBufferRange. There is an outstanding bug on > the specification for glTextureBu

Re: [Mesa-dev] [PATCH 14/41] main: Added entry point for BindTextureUnit.

2014-12-30 Thread Anuj Phogat
On Tue, Dec 16, 2014 at 7:46 AM, Brian Paul wrote: > On 12/15/2014 06:22 PM, Laura Ekstrand wrote: >> >> The following preparations were made in texstate.c and texstate.h to >> better facilitate the BindTextureUnit function: >> >> Dylan Noblesmith: >> mesa: add _mesa_get_tex_unit() >> mesa: factor

Re: [Mesa-dev] [PATCH 15/41] main: set_tex_parameteri now handles errors according to the OpenGL 4.5 Specification.

2014-12-30 Thread Anuj Phogat
On Tue, Dec 16, 2014 at 6:52 AM, Laura Ekstrand wrote: > Beginning in the OpenGL 4.3 core specification, some error handling has > changed. As an example, changing sampler states with a multisample target > throws INVALID_ENUM rather than INVALID_OPERATION. Patch also changes error handling for GL

Re: [Mesa-dev] [PATCH 17/41] main: Added get_texobj_by_name in texparam.c.

2014-12-30 Thread Anuj Phogat
On Tue, Dec 16, 2014 at 6:52 AM, Laura Ekstrand wrote: > This is a convenience function for *Texture*Parameter functions. > --- > src/mesa/main/texparam.c | 38 ++ > 1 file changed, 38 insertions(+) > > diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texp

Re: [Mesa-dev] [PATCH 18/41] main: Added entry point for glTextureParameterf.

2014-12-30 Thread Anuj Phogat
On Tue, Dec 16, 2014 at 6:52 AM, Laura Ekstrand wrote: > --- > src/mapi/glapi/gen/ARB_direct_state_access.xml | 6 +++ > src/mesa/main/texparam.c | 52 > +- > src/mesa/main/texparam.h | 20 ++ > 3 files changed, 68 inse

Re: [Mesa-dev] [PATCH 19/41] main: Added entry point for glTextureParameterfv.

2014-12-30 Thread Anuj Phogat
On Tue, Dec 16, 2014 at 11:54 PM, Laura Ekstrand wrote: > No. I have a 78 column line highlight in my editor. > It does fit when you remove the whitespaces in function braces. > On Tue, Dec 16, 2014 at 7:46 AM, Brian Paul wrote: >> >> On 12/15/2014 06:22 PM, Laura Ekstrand wrote: >>> >>> --- >>>

Re: [Mesa-dev] [PATCH 28/41] main: Nameless texture creation and deletion. Does not affect normal creation and deletion paths.

2014-12-31 Thread Anuj Phogat
On Mon, Dec 15, 2014 at 5:22 PM, Laura Ekstrand wrote: > In implementing ARB_DIRECT_STATE_ACCESS functions, it is often necessary to > abstract the functionality of a traditional GL API function into a backend > that both the traditional and dsa API functions can share. For instance, > glTexParam

Re: [Mesa-dev] [PATCH 29/41] main: Added entry point for glGetTextureImage.

2014-12-31 Thread Anuj Phogat
On Mon, Dec 15, 2014 at 5:22 PM, Laura Ekstrand wrote: > --- > src/mapi/glapi/gen/ARB_direct_state_access.xml | 9 + > src/mesa/main/texgetimage.c| 315 > +++-- > src/mesa/main/texgetimage.h| 9 + > 3 files changed, 267 insertions(+

Re: [Mesa-dev] [PATCH 30/41] main: Added entry point for glGetCompressedTextureImage.

2014-12-31 Thread Anuj Phogat
On Mon, Dec 15, 2014 at 5:22 PM, Laura Ekstrand wrote: > --- > src/mapi/glapi/gen/ARB_direct_state_access.xml | 7 + > src/mesa/main/texgetimage.c| 169 > ++--- > src/mesa/main/texgetimage.h| 12 ++ > 3 files changed, 143 insertions(

Re: [Mesa-dev] [PATCH 29/41] main: Added entry point for glGetTextureImage.

2014-12-31 Thread Anuj Phogat
On Wed, Dec 31, 2014 at 11:21 AM, Anuj Phogat wrote: > On Mon, Dec 15, 2014 at 5:22 PM, Laura Ekstrand wrote: >> --- >> src/mapi/glapi/gen/ARB_direct_state_access.xml | 9 + >> src/mesa/main/texgetimage.c| 315 >> +++-- >

Re: [Mesa-dev] [PATCH 32/41] main: Added entry point for glGenerateTextureMipmap.

2014-12-31 Thread Anuj Phogat
On Mon, Dec 15, 2014 at 5:22 PM, Laura Ekstrand wrote: > --- > src/mapi/glapi/gen/ARB_direct_state_access.xml | 4 ++ > src/mesa/main/genmipmap.c | 73 > +++--- > src/mesa/main/genmipmap.h | 6 +++ > 3 files changed, 64 insertions(+

Re: [Mesa-dev] [PATCH 34/41] main: Fixed _mesa_texture_image_multisample so that it updates the texObj->Immutable flag correctly.

2014-12-31 Thread Anuj Phogat
Use shorter commit messages in present tense: "main: Fix texObj->Immutable flag update in _mesa_texture_image_multisample" On Mon, Dec 15, 2014 at 5:22 PM, Laura Ekstrand wrote: > --- > src/mesa/main/teximage.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/mesa/mai

Re: [Mesa-dev] [PATCH 40/41] main: Checking for cube completeness in GetTextureImage.

2014-12-31 Thread Anuj Phogat
On Mon, Dec 15, 2014 at 5:22 PM, Laura Ekstrand wrote: > This is part of a potential solution to Khronos Bug 13223. Cube completeness > is a concept from glGenerateMipmap, but it seems reasonable to check for it in > GetTextureImage when the target is GL_TEXTURE_CUBE_MAP. Add this to the comment

Re: [Mesa-dev] [PATCH 40/41] main: Checking for cube completeness in GetTextureImage.

2014-12-31 Thread Anuj Phogat
l be sending out a new patch "Checking for cube completeness in > GetTextureImage" and another new one for "Checking for cube completeness in > TextureSubImage." I will also send a patch to add a function > _mesa_cube_level_complete. > Good catch. > On Wed, Dec 31,

Re: [Mesa-dev] [PATCH 1/3] main: Added _mesa_cube_level_complete to check for the completeness of an arbitrary cube map level.

2014-12-31 Thread Anuj Phogat
On Wed, Dec 31, 2014 at 5:26 PM, Laura Ekstrand wrote: > --- > src/mesa/main/texobj.c | 23 ++- > src/mesa/main/texobj.h | 4 > 2 files changed, 18 insertions(+), 9 deletions(-) > > diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c > index 126b523..82d52c5 100

Re: [Mesa-dev] [PATCH 11/41] main: Added entry points for glTextureStorage*D.

2014-12-31 Thread Anuj Phogat
On Tue, Dec 16, 2014 at 10:59 AM, Laura Ekstrand wrote: > This happens almost everywhere. I prefer to call _mesa_error(ctx, > "glTex%sStorage" rather than _mesa_error(ctx, "%s" because it's > more obvious when reading the code which API function you're in (texture > storage rather than c

Re: [Mesa-dev] [PATCH 09/41] main: Removed trailing whitespace in texstate.c.

2015-01-06 Thread Anuj Phogat
I think you can squash all the patches fixing the white space issues. Patch 09/41, 36/41 and 37/41. On Mon, Dec 15, 2014 at 5:22 PM, Laura Ekstrand wrote: > --- > src/mesa/main/texstate.c | 18 +- > 1 file changed, 9 insertions(+), 9 deletions(-) > > diff --git a/src/mesa/main/te

Re: [Mesa-dev] [PATCH 00/41] ARB_direct_state_access texture functions

2015-01-06 Thread Anuj Phogat
I ran gles3 conformance on your adsa-textures branch. Your patches cause no regressions. With all the comments fixed, and no piglit regressions, this series is Reviewed-by: Anuj Phogat On Tue, Dec 30, 2014 at 4:27 PM, Laura Ekstrand wrote: > That is now fixed. Each added entry point in

Re: [Mesa-dev] [PATCH v4 12/22] mesa: Add a _mesa_is_format_color_format helper

2015-01-08 Thread Anuj Phogat
um > +_mesa_is_format_color_format(mesa_format format); > + > extern GLenum > _mesa_get_format_color_encoding(mesa_format format); > > -- > 1.9.1 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop

Re: [Mesa-dev] [PATCH v4 02/22] mesa: Fix packing/unpacking of MESA_FORMAT_R5G6B5_UNORM

2015-01-08 Thread Anuj Phogat
= ((s >> 5 ) & 0x3f) * (1.0F / 63.0F); > + texel[BCOMP] = ((s >> 11) & 0x1f) * (1.0F / 31.0F); > texel[ACOMP] = 1.0F; > } > > -- > 1.9.1 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Below comment in formats.h also needs a fix to show correct ordering of components: * examples: msb <-- TEXEL BITS ---> lsb * MESA_FORMAT_A8B8G8R8_UNORM, * MESA_FORMAT_R5G6B5_UNORM RGGG GGGB * MESA_FORMAT_B4G4R4X4_UNORM With this comment fixed, this patch is: 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 render buffer initial internal format type

2015-01-13 Thread Anuj Phogat
On Fri, Jan 9, 2015 at 5:21 PM, wrote: > From: Mike Mason > > Changes the initial internal format of a render buffer > to GL_RGBA4. This fixes a failure in the following > DrawElements test: > > dEQP-GLES3.functional.state_query.rbo.renderbuffer_internal_format > --- > src/mesa/main/renderbuffe

Re: [Mesa-dev] [PATCH v2] mesa: Fix render buffer initial internal format in GLES 3

2015-01-14 Thread Anuj Phogat
GBA4; > + } else { > + rb->InternalFormat = GL_RGBA; > + } > + > rb->Format = MESA_FORMAT_NONE; > } > > -- > 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 11/11] mesa: fix error value in GetFramebufferAttachmentParameteriv for OpenGL ES 3.0

2015-01-20 Thread Anuj Phogat
a > symbolic constant that is not one of those specified as allowable > for that command, an INVALID_ENUM error is generated." > > The ES3.1 spec is also specific on this point: > > An INVALID_ENUM error is generated by any combinations of > framebuffer type an

Re: [Mesa-dev] [PATCH 05/11] mesa: Validate internal format and format type first to provide accurate error code

2015-01-20 Thread Anuj Phogat
On Mon, Jan 19, 2015 at 3:32 AM, Eduardo Lima Mitev wrote: > The specification states that glTexImage2D and glTexImage3D should return > GL_INVALID_VALUE if the internal format is invalid, and GL_INVALID_ENUM is > the format type is invalid. However, current error check only considers the > combin

Re: [Mesa-dev] [PATCH 03/11] i965: Fix negate with unsigned integers

2015-01-20 Thread Anuj Phogat
opagate UD negations becuse we > +* end up accessing the resulting values as signed integers > +* instead. See also resolve_ud_negate(). > */ > - if (inst->conditional_mod && > - value.negate && > + if (value.negate && > value.type ==

Re: [Mesa-dev] [PATCH] intel/eu: Stop overriding exec sizes in send_indirect_message

2019-01-15 Thread Anuj Phogat
yload, BRW_REGISTER_TYPE_UD)); > brw_inst_set_sfid(devinfo, send, sfid); > -- Reviewed-by: Anuj Phogat > 2.20.1 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/mesa-dev __

Re: [Mesa-dev] [PATCH 1/5] intel/fs: Exclude control sources from execution type and region alignment calculations.

2019-02-14 Thread Anuj Phogat
Fixes all subgroup test failures in vulkancts on Icelake. Series is: Tested-by: Anuj Phogat On Fri, Jan 18, 2019 at 4:09 PM Francisco Jerez wrote: > > Currently the execution type calculation will return a bogus value in > cases like: > > mov_indirect(8) vgrf0:w, vgrf1:w

Re: [Mesa-dev] [PATCH] i965: Disallow fast blit paths for CopyTexImage with PixelTransfer ops

2015-09-08 Thread Anuj Phogat
On Sun, Sep 6, 2015 at 9:37 AM, Chris Wilson wrote: > glCopyTexImage behaves similarly to glReadPixels with respect to the > pixel transfer operations. Therefore if any are set we cannot use the > simply blit fast paths. > > Signed-off-by: Chris Wilson > Cc: Jason Ekstrand > Cc: Kenneth Graunke

Re: [Mesa-dev] [PATCH] i965: Disallow fast blit paths for CopyTexImage with PixelTransfer ops

2015-09-08 Thread Anuj Phogat
On Tue, Sep 8, 2015 at 12:58 PM, Chris Wilson wrote: > On Tue, Sep 08, 2015 at 12:33:05PM -0700, Anuj Phogat wrote: >> On Sun, Sep 6, 2015 at 9:37 AM, Chris Wilson >> wrote: >> > glCopyTexImage behaves similarly to glReadPixels with respect to the >> > pixel

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

2015-09-09 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_pixel_rea

Re: [Mesa-dev] [PATCH] meta: Use result of texture coordinate clamping operation

2015-09-09 Thread Anuj Phogat
(coord.x))]); > > Since the coord parameter of this macro is a vec2 at all invocations, no > expansion of this macro will even compile. > > Signed-off-by: Ian Romanick > Cc: Anuj Phogat > Cc: Topi Pohjolainen > Cc: Jordan Justen > --- > src/mesa/drivers/common/meta_bli

Re: [Mesa-dev] [PATCH] meta: Use result of texture coordinate clamping operation

2015-09-09 Thread Anuj Phogat
array >>> texture case could possibly work. This will generate code for the >>> TEXEL_FETCH macro like: >>> >>> #define TEXEL_FETCH(coord) texelFetch(texSampler, ivec3(coord), sample_map[int(2 * fract(coord.x))]); >>> >>> Since the co

Re: [Mesa-dev] [PATCH] meta: Use result of texture coordinate clamping operation

2015-09-09 Thread Anuj Phogat
On Wed, Sep 9, 2015 at 6:19 PM, Ian Romanick wrote: > On 09/09/2015 04:55 PM, Anuj Phogat wrote: >> On Wed, Sep 9, 2015 at 11:30 AM, Ian Romanick wrote: >>> I'm pretty sure our implementation of this extension is complete >>> rubbish. I have attached an image

Re: [Mesa-dev] [Mesa-stable] [PATCH] meta: Always bind the texture

2015-09-10 Thread Anuj Phogat
s(1, &mipmap->Sampler); > -- > 2.1.0 > > ___ > mesa-stable mailing list > mesa-sta...@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-stable > You can now remove the temporary variable currentTexU

Re: [Mesa-dev] [PATCH 1/9] i965: Silence unused parameter warnings in intel_fbo.c

2015-09-10 Thread Anuj Phogat
cX0, srcY0, srcX1, srcY1, >dstX0, dstY0, dstX1, dstY1, > - mask, filter); > + mask); > if (mask == 0x0) >return; > > -- > 2.1

Re: [Mesa-dev] [PATCH 2/9] i965: Silence unused parameter warnings in intel_mipmap_tree.c

2015-09-10 Thread Anuj Phogat
ap_tree.h > b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h > index c28162a..81e5f52 100644 > --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h > +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h > @@ -517,8 +517,7 @@ struct intel_mipmap_tree > }; > > void > -i

Re: [Mesa-dev] [PATCH 3/9] i915, i965: Silence unused parameter warnings in intel_mipmap_tree.h

2015-09-10 Thread Anuj Phogat
id) layer; > + > assert(level >= mt->first_level); > assert(level <= mt->last_level); > assert(layer < mt->level[level].depth); > -- > 2.1.0 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesk

Re: [Mesa-dev] [PATCH 4/9] i965: Make intel_miptree_map_raw static

2015-09-10 Thread Anuj Phogat
ntel_mipmap_tree.h > @@ -774,12 +774,6 @@ brw_miptree_layout(struct brw_context *brw, > struct intel_mipmap_tree *mt, > uint32_t layout_flags); > > -void *intel_miptree_map_raw(struct brw_context *brw, > -struct intel_mipmap_tree *mt); >

Re: [Mesa-dev] [PATCH 5/9] i915: Remove prototype for nonexistent brw_miptree_layout

2015-09-10 Thread Anuj Phogat
struct intel_mipmap_tree *mt); > > void *intel_miptree_map_raw(struct intel_context *intel, > struct intel_mipmap_tree *mt); > -- > 2.1.0 > > ___ > mesa-dev mailing list > mesa-dev@lists.fr

Re: [Mesa-dev] [PATCH 1/9] i965: Silence unused parameter warnings in intel_fbo.c

2015-09-10 Thread Anuj Phogat
On Thu, Sep 10, 2015 at 11:47 AM, Ian Romanick wrote: > On 09/10/2015 11:27 AM, Anuj Phogat wrote: > > > > > > On Wed, Sep 9, 2015 at 7:18 PM, Ian Romanick > <mailto:i...@freedesktop.org>> wrote: > > > > From: Ian Romanick > <mailto

Re: [Mesa-dev] [PATCH 6/9] i915: Silence unused parameter warnings

2015-09-10 Thread Anuj Phogat
2,7 +102,7 @@ intel_blit_texsubimage(struct gl_context * ctx, >_mesa_error(ctx, GL_OUT_OF_MEMORY, "intelTexSubImage"); > } > > - intel_miptree_unmap_raw(intel, temp_mt); > + intel_miptree_unmap_raw(temp_mt); > > bool ret; > > -- > 2.1.0

Re: [Mesa-dev] [PATCH 7/9] i915, i965: Silence unused parameter warnings in intel_miptree_unmap_gtt

2015-09-10 Thread Anuj Phogat
tt(brw, mt, map, level, slice); > + intel_miptree_unmap_gtt(mt); > } > > intel_miptree_release_map(mt, level, slice); > -- > 2.1.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 8/9] i915: Silence unused parameter warning in intel_miptree_create_layout

2015-09-10 Thread Anuj Phogat
width, height, 1, > - true); > + width, height, 1); > if (intel_image->mt == NULL) > return; > intel_region_reference(&intel_image-

Re: [Mesa-dev] [PATCH 9/9] i915, i965: Silence unused parameter warnings in intel_batchbuffer_advance

2015-09-10 Thread Anuj Phogat
el_batchbuffer_advance(struct brw_context *brw) >abort(); > } > batch->total = 0; > +#else > + (void) brw; > #endif > } > > -- > 2.1.0 > > _______ > mesa-dev mailing list > mesa-dev@lists.f

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

2015-09-11 Thread Anuj Phogat
On Thu, Sep 10, 2015 at 12:20 PM, Chad Versace wrote: > On Wed 19 Aug 2015, Anuj Phogat wrote: > > V2: > > - Do the tile width/height computations in the new helper > > function and use it later in intel_miptree_get_tile_masks(). > > - Change the name to intel_get_t

Re: [Mesa-dev] [PATCH 1/2] mesa/texcompress: add function to determine compressed format type

2015-09-11 Thread Anuj Phogat
d_format(GLenum format); > > +extern bool > +_mesa_is_specific_np_compressed_format(GLenum format); > + > extern GLenum > _mesa_compressed_format_to_glenum(struct gl_context *ctx, mesa_format > mesaFormat); > > -- > 2.5.0 > > ___ > mesa

Re: [Mesa-dev] [PATCH 2/6] mesa/glformats: restrict ETC1_RGB8 support to GLES1/2

2015-09-11 Thread Anuj Phogat
ernalFormat) { >case GL_ETC1_RGB8_OES: > return GL_RGB; > -- > 2.5.0 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev > Reviewed-by: An

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