[Mesa-dev] [PATCH 8/8] i965: Enable ARB_sample_shading on intel hardware >= gen6

2013-10-14 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/intel_extensions.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c index 6f024b4..0d71617 100644 --- a/src/mesa/drivers/dri/i965

Re: [Mesa-dev] [PATCH 2/8] mesa: Add new functions and enums required by GL_ARB_sample_shading

2013-10-14 Thread Anuj Phogat
On Mon, Oct 14, 2013 at 11:05 AM, Matt Turner wrote: > On Mon, Oct 14, 2013 at 10:12 AM, Anuj Phogat wrote: >> diff --git a/src/mapi/glapi/gen/GL3x.xml b/src/mapi/glapi/gen/GL3x.xml >> index 5078f7b..4ec4749 100644 >> --- a/src/mapi/glapi/gen/GL3x.xml >> +++ b/

Re: [Mesa-dev] [PATCH 4/8] glsl: Add new builtins required by GL_ARB_sample_shading

2013-10-15 Thread Anuj Phogat
On Tue, Oct 15, 2013 at 10:02 AM, Ian Romanick wrote: > On 10/14/2013 10:12 AM, Anuj Phogat wrote: >> New builtins added by GL_ARB_sample_shading: >> in vec2 gl_SamplePosition >> in int gl_SampleID >> in int gl_NumSamples >> out int gl_SampleMask[] >> >&g

Re: [Mesa-dev] [PATCH 5/8] i965: Implement FS backend for ARB_sample_shading

2013-10-15 Thread Anuj Phogat
On Tue, Oct 15, 2013 at 1:49 PM, Kenneth Graunke wrote: > On 10/14/2013 10:12 AM, Anuj Phogat wrote: >> Implement the FS backend for new builtins added by the extension: >> in vec2 gl_SamplePosition >> in int gl_SampleID >> in int gl_NumSamples >> out int gl_Sampl

Re: [Mesa-dev] [PATCH 5/8] i965: Implement FS backend for ARB_sample_shading

2013-10-15 Thread Anuj Phogat
On Tue, Oct 15, 2013 at 3:28 PM, Kenneth Graunke wrote: > On 10/14/2013 10:12 AM, Anuj Phogat wrote: >> Implement the FS backend for new builtins added by the extension: >> in vec2 gl_SamplePosition >> in int gl_SampleID >> in int gl_NumSamples >> out int gl_Sampl

Re: [Mesa-dev] [PATCH 3/8] mesa: Pass number of samples as a program state variable

2013-10-16 Thread Anuj Phogat
On Tue, Oct 15, 2013 at 1:54 PM, Ian Romanick wrote: > On 10/15/2013 09:53 AM, Ian Romanick wrote: >> On 10/14/2013 10:12 AM, Anuj Phogat wrote: >>> @@ -852,6 +858,9 @@ append_token(char *dst, gl_state_index k) >>> case STATE_TEXENV_COLOR: >>>app

Re: [Mesa-dev] [PATCH 7/8] i965/gen7: Enable the features required for GL_ARB_sample_shading

2013-10-16 Thread Anuj Phogat
On Tue, Oct 15, 2013 at 3:48 PM, Kenneth Graunke wrote: > On 10/14/2013 10:12 AM, Anuj Phogat wrote: >> - Enable GEN7_WM_MSDISPMODE_PERSAMPLE, GEN7_WM_POSOFFSET_SAMPLE, >> GEN7_WM_OMASK_TO_RENDER_TARGET as per extension's specification. >> - Don't enable

Re: [Mesa-dev] [PATCH 6/8] i965/gen6: Enable the features required for GL_ARB_sample_shading

2013-10-16 Thread Anuj Phogat
On Tue, Oct 15, 2013 at 3:38 PM, Kenneth Graunke wrote: > On 10/14/2013 10:12 AM, Anuj Phogat wrote: >> - Enable GEN6_WM_MSDISPMODE_PERSAMPLE, GEN6_WM_POSOFFSET_SAMPLE, >> GEN6_WM_OMASK_TO_RENDER_TARGET as per extension's specification. >> - Don't enable

Re: [Mesa-dev] [PATCH 7/8] i965/gen7: Enable the features required for GL_ARB_sample_shading

2013-10-16 Thread Anuj Phogat
On Wed, Oct 16, 2013 at 3:20 PM, Ian Romanick wrote: > On 10/16/2013 02:57 PM, Anuj Phogat wrote: >> On Tue, Oct 15, 2013 at 3:48 PM, Kenneth Graunke >> wrote: >>> On 10/14/2013 10:12 AM, Anuj Phogat wrote: >>>> - Enable GEN7_WM_MSDISPMODE

Re: [Mesa-dev] [PATCH 4/8] glsl: Add new builtins required by GL_ARB_sample_shading

2013-10-16 Thread Anuj Phogat
On Wed, Oct 16, 2013 at 3:49 PM, Ian Romanick wrote: > On 10/16/2013 11:29 AM, Kenneth Graunke wrote: >> On 10/16/2013 10:40 AM, Ian Romanick wrote: >>> On 10/15/2013 07:50 PM, Kenneth Graunke wrote: >> [snip] Right, but gl_SampleMask is not an unsized array. It's statically sized based

Re: [Mesa-dev] [PATCH 4/8] glsl: Add new builtins required by GL_ARB_sample_shading

2013-10-17 Thread Anuj Phogat
On Wed, Oct 16, 2013 at 11:25 PM, Kenneth Graunke wrote: > On 10/16/2013 03:49 PM, Ian Romanick wrote: > [snip] >> You are completely correct here. We should check what other vendors do. >> I think 5 tests will tell us everything we need to know (then we'll >> probably submit some spec bugs). I

Re: [Mesa-dev] [PATCH 5/8] i965: Implement FS backend for ARB_sample_shading

2013-10-18 Thread Anuj Phogat
On Tue, Oct 15, 2013 at 5:42 PM, Anuj Phogat wrote: > On Tue, Oct 15, 2013 at 1:49 PM, Kenneth Graunke > wrote: >> On 10/14/2013 10:12 AM, Anuj Phogat wrote: >>> Implement the FS backend for new builtins added by the extension: >>> in vec2 gl_SamplePosition >

[Mesa-dev] [PATCH] i965: Do not set bilinear_filter flag in case of multisample blits

2013-10-18 Thread Anuj Phogat
) works fine with this patch. Cc: mesa-sta...@lists.freedesktop.org Signed-off-by: Anuj Phogat Reported-by: Armin K --- src/mesa/drivers/dri/i965/brw_blorp_blit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp b/src/mesa/drivers/dri

Re: [Mesa-dev] [PATCH 3/8] mesa: Pass number of samples as a program state variable

2013-10-21 Thread Anuj Phogat
On Fri, Oct 18, 2013 at 2:44 PM, Paul Berry wrote: > On 14 October 2013 10:12, Anuj Phogat wrote: >> >> Number of samples will be required in fragment shader program by new >> GLSL builtin uniform "gl_NumSamples". >> >> Signed-off-by: Anuj Phogat &

Re: [Mesa-dev] [PATCH 6/8] i965/gen6: Enable the features required for GL_ARB_sample_shading

2013-10-23 Thread Anuj Phogat
On Sun, Oct 20, 2013 at 7:25 AM, Paul Berry wrote: > On 14 October 2013 10:12, Anuj Phogat wrote: >> >> - Enable GEN6_WM_MSDISPMODE_PERSAMPLE, GEN6_WM_POSOFFSET_SAMPLE, >> GEN6_WM_OMASK_TO_RENDER_TARGET as per extension's specification. >> - Don't e

Re: [Mesa-dev] [PATCH 7/8] i965/gen7: Enable the features required for GL_ARB_sample_shading

2013-10-23 Thread Anuj Phogat
On Sun, Oct 20, 2013 at 7:37 AM, Paul Berry wrote: > On 16 October 2013 15:20, Ian Romanick wrote: >> >> On 10/16/2013 02:57 PM, Anuj Phogat wrote: >> > On Tue, Oct 15, 2013 at 3:48 PM, Kenneth Graunke >> > wrote: >> >> On 10/14/2013

Re: [Mesa-dev] [PATCH 4/8] glsl: Add new builtins required by GL_ARB_sample_shading

2013-10-23 Thread Anuj Phogat
On Fri, Oct 18, 2013 at 2:57 PM, Paul Berry wrote: > On 14 October 2013 10:12, Anuj Phogat wrote: >> >> New builtins added by GL_ARB_sample_shading: >> in vec2 gl_SamplePosition >> in int gl_SampleID >> in int gl_NumSamples >> out int gl_Sample

Re: [Mesa-dev] [PATCH 5/8] i965: Implement FS backend for ARB_sample_shading

2013-10-24 Thread Anuj Phogat
On Sat, Oct 19, 2013 at 3:05 PM, Paul Berry wrote: > On 14 October 2013 10:12, Anuj Phogat wrote: >> >> Implement the FS backend for new builtins added by the extension: >> in vec2 gl_SamplePosition >> in int gl_SampleID >> in int gl_NumSamples >> out i

[Mesa-dev] [PATCH V2 00/12] Implement GL_ARB_sample_shading on Intel hardware

2013-10-25 Thread Anuj Phogat
idual patches are listed in commit message. Following patches in this series need a 'reviewed-by'. 4/12, 6/12, 7/12, 8/12, 9/12, 10/12, 11,12 Anuj Phogat (12): mesa: Add infrastructure for GL_ARB_sample_shading mesa: Add new functions and enums required by GL_ARB_sample_shading mesa:

[Mesa-dev] [PATCH V2 01/12] mesa: Add infrastructure for GL_ARB_sample_shading

2013-10-25 Thread Anuj Phogat
This patch implements the common support code required for the GL_ARB_sample_shading extension. V2: Move GL_ARB_sample_shading to ARB extension list. Signed-off-by: Anuj Phogat Reviewed-by: Ian Romanick Reviewed-by: Ken Graunke --- src/glsl/glcpp/glcpp-parse.y| 3 +++ src/glsl

[Mesa-dev] [PATCH V2 02/12] mesa: Add new functions and enums required by GL_ARB_sample_shading

2013-10-25 Thread Anuj Phogat
extra_gl40_ARB_sample_shading predicate to get.c. Signed-off-by: Anuj Phogat Reviewed-by: Ken Graunke --- src/mapi/glapi/gen/ARB_sample_shading.xml | 19 +++ src/mapi/glapi/gen/GL4x.xml | 21 + src/mapi/glapi/gen/Makefile.am| 4 +++- src/mapi/glapi/gen

[Mesa-dev] [PATCH V2 03/12] mesa: Pass number of samples as a program state variable

2013-10-25 Thread Anuj Phogat
Number of samples will be required in fragment shader program by new GLSL builtin uniform "gl_NumSamples". V2: Use "state.numsamples" in place of "state.num.samples" Use _NEW_BUFFERS flag in place of _NEW_MULTISAMPLE Signed-off-by: Anuj Phogat Reviewed-by:

[Mesa-dev] [PATCH 04/12] mesa: Add a helper function _mesa_get_min_invocations_per_fragment()

2013-10-25 Thread Anuj Phogat
Thsi function is used to test if we need to do per sample shading or per fragment shading. Signed-off-by: Anuj Phogat --- src/mesa/program/program.c | 31 +++ src/mesa/program/program.h | 3 +++ 2 files changed, 34 insertions(+) diff --git a/src/mesa/program

[Mesa-dev] [PATCH V2 05/12] glsl: Add new builtins required by GL_ARB_sample_shading

2013-10-25 Thread Anuj Phogat
SampleMask[] array. - Make gl_SampleID and gl_SamplePosition system values. Signed-off-by: Anuj Phogat Reviewed-by: Paul Berry --- src/glsl/builtin_variables.cpp | 18 ++ src/mesa/main/mtypes.h | 10 +- src/mesa/program/prog_print.c | 1 + 3 files changed, 28

[Mesa-dev] [PATCH 06/12] i965: Don't do vector splitting for ir_var_system_value

2013-10-25 Thread Anuj Phogat
This is required while adding builtin system value vec{2, 3, 4} variables. For example: (declare (sys) vec2 gl_SamplePosition) Without this patch above glsl ir splits in to: (declare (temporary) float gl_SamplePosition_x) (declare (temporary) float gl_SamplePosition_y) Signed-off-by: Anuj Phogat

[Mesa-dev] [PATCH V2 07/12] i965: Add FS backend for builtin gl_SamplePosition

2013-10-25 Thread Anuj Phogat
V2: - Update comments. - Make changes to support simd16 mode. - Add compute_pos_offset variable in brw_wm_prog_key. - Add variable uses_omask in brw_wm_prog_data. Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/brw_context.h | 1 + src/mesa/drivers/dri/i965/brw_fs.cpp

[Mesa-dev] [PATCH V2 08/12] i965: Add FS backend for builtin gl_SampleID

2013-10-25 Thread Anuj Phogat
V2: - Update comments - Make changes to support simd16 mode. - Add compute_sample_id variables in brw_wm_prog_key - Add a special backend instruction to compute sample_id. Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/brw_defines.h| 1 + src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH V2 09/12] i965: Add FS backend for builtin gl_SampleMask[]

2013-10-25 Thread Anuj Phogat
V2: - Update comments - Use fs_reg(0x) in AND instruction to get the 16 bit sample_mask. - Add a special backend instructions to compute sample_mask. - Add a new variable uses_omask in brw_wm_prog_data. Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/brw_context.h

[Mesa-dev] [PATCH V2 10/12] i965/gen6: Enable the features required for GL_ARB_sample_shading

2013-10-25 Thread Anuj Phogat
e 279 for details. V2: - Add a comment explaining why only SIMD8 mode is enabled with MSDISPMODE_PERSAMPLE. - Use shared function _mesa_get_min_invocations_per_fragment(). - Use brw_wm_prog_data variables: uses_pos_offset, uses_omask. Signed-off-by: Anuj Phogat --- src/mesa/driver

[Mesa-dev] [PATCH V2 11/12] i965/gen7: Enable the features required for GL_ARB_sample_shading

2013-10-25 Thread Anuj Phogat
e 288 for details. V2: - Add a comment explaining why only SIMD8 mode is enabled with MSDISPMODE_PERSAMPLE. - Use shared function _mesa_get_min_invocations_per_fragment(). - Use brw_wm_prog_data variables: uses_pos_offset, uses_omask. Signed-off-by: Anuj Phogat --- src/mesa/driver

[Mesa-dev] [PATCH 12/12] i965: Enable ARB_sample_shading on intel hardware >= gen6

2013-10-25 Thread Anuj Phogat
Signed-off-by: Anuj Phogat Reviewed-by: Paul Berry Reviewed-by: Ken Graunke --- src/mesa/drivers/dri/i965/intel_extensions.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c index 803d090..88201bd

Re: [Mesa-dev] [PATCH] i965: Do not set bilinear_filter flag in case of multisample blits

2013-10-28 Thread Anuj Phogat
On Sun, Oct 27, 2013 at 7:42 AM, Paul Berry wrote: > On 18 October 2013 17:24, Anuj Phogat wrote: >> >> Setting bilinear_filter flag in case of multisample blits with >> GL_LINEAR filter causes incorrect behavior in translate_dst_to_src() >> function. This broke Mod

Re: [Mesa-dev] [PATCH V2 02/12] mesa: Add new functions and enums required by GL_ARB_sample_shading

2013-10-28 Thread Anuj Phogat
On Mon, Oct 28, 2013 at 10:29 AM, Ian Romanick wrote: > On 10/25/2013 04:44 PM, Anuj Phogat wrote: >> New functions added by GL_ARB_sample_shading: >> glMinSampleShadingARB() >> >> New enums: >> GL_SAMPLE_SHADING_ARB >> GL_MIN_SAMPLE_SHADING_VALUE_ARB >&

Re: [Mesa-dev] [PATCH V2 08/12] i965: Add FS backend for builtin gl_SampleID

2013-10-28 Thread Anuj Phogat
On Mon, Oct 28, 2013 at 3:23 PM, Paul Berry wrote: > On 25 October 2013 16:45, Anuj Phogat wrote: > >> V2: >>- Update comments >>- Make changes to support simd16 mode. >>- Add compute_sample_id variables in brw_wm_prog_key >>- Add a sp

Re: [Mesa-dev] [PATCH V2 10/12] i965/gen6: Enable the features required for GL_ARB_sample_shading

2013-10-28 Thread Anuj Phogat
On Mon, Oct 28, 2013 at 6:14 PM, Paul Berry wrote: > On 25 October 2013 16:45, Anuj Phogat wrote: > >> - Enable GEN6_WM_MSDISPMODE_PERSAMPLE, GEN6_WM_POSOFFSET_SAMPLE, >> GEN6_WM_OMASK_TO_RENDER_TARGET as per extension's specification. >> - Only enable one of

Re: [Mesa-dev] [PATCH V2 10/12] i965/gen6: Enable the features required for GL_ARB_sample_shading

2013-10-29 Thread Anuj Phogat
On Mon, Oct 28, 2013 at 7:00 PM, Paul Berry wrote: > On 28 October 2013 18:14, Paul Berry wrote: > >> On 25 October 2013 16:45, Anuj Phogat wrote: >> >>> - Enable GEN6_WM_MSDISPMODE_PERSAMPLE, GEN6_WM_POSOFFSET_SAMPLE, >>> GEN6_WM_OMASK_TO_RENDER_TAR

Re: [Mesa-dev] [PATCH V2 07/12] i965: Add FS backend for builtin gl_SamplePosition

2013-10-29 Thread Anuj Phogat
On Tue, Oct 29, 2013 at 12:36 AM, Eric Anholt wrote: > Anuj Phogat writes: > > > V2: > >- Update comments. > >- Make changes to support simd16 mode. > >- Add compute_pos_offset variable in brw_wm_prog_key. > >- Add variable uses_omask in brw

Re: [Mesa-dev] [PATCH V2 11/12] i965/gen7: Enable the features required for GL_ARB_sample_shading

2013-10-29 Thread Anuj Phogat
On Mon, Oct 28, 2013 at 6:48 PM, Paul Berry wrote: > On 25 October 2013 16:45, Anuj Phogat wrote: > >> - Enable GEN7_WM_MSDISPMODE_PERSAMPLE, GEN7_WM_POSOFFSET_SAMPLE, >> GEN7_WM_OMASK_TO_RENDER_TARGET as per extension's specification. >> - Only enable one of

Re: [Mesa-dev] [PATCH V2 11/12] i965/gen7: Enable the features required for GL_ARB_sample_shading

2013-10-29 Thread Anuj Phogat
On Tue, Oct 29, 2013 at 4:31 PM, Paul Berry wrote: > On 29 October 2013 15:59, Anuj Phogat wrote: > >> >> >> >> On Mon, Oct 28, 2013 at 6:48 PM, Paul Berry wrote: >> >>> On 25 October 2013 16:45, Anuj Phogat wrote: >>> >>>&g

Re: [Mesa-dev] [PATCH V2 09/12] i965: Add FS backend for builtin gl_SampleMask[]

2013-10-29 Thread Anuj Phogat
On Mon, Oct 28, 2013 at 5:10 PM, Paul Berry wrote: > On 25 October 2013 16:45, Anuj Phogat wrote: > >> V2: >>- Update comments >>- Use fs_reg(0x) in AND instruction to get the 16 bit >> sample_mask. >>- Add a special backend instructions

Re: [Mesa-dev] [PATCH V2 09/12] i965: Add FS backend for builtin gl_SampleMask[]

2013-10-30 Thread Anuj Phogat
On Tue, Oct 29, 2013 at 10:04 PM, Paul Berry wrote: > On 29 October 2013 19:22, Anuj Phogat wrote: >> >> >> >> >> On Mon, Oct 28, 2013 at 5:10 PM, Paul Berry >> wrote: >>> >>> On 25 October 2013 16:45, Anuj Phogat wrote: >>>&g

Re: [Mesa-dev] [PATCH V2 11/12] i965/gen7: Enable the features required for GL_ARB_sample_shading

2013-10-31 Thread Anuj Phogat
On Tue, Oct 29, 2013 at 9:29 PM, Paul Berry wrote: > On 29 October 2013 21:28, Paul Berry wrote: > >> On 29 October 2013 17:16, Anuj Phogat wrote: >> >>> >>> >>> >>> On Tue, Oct 29, 2013 at 4:31 PM, Paul Berry wrote: >>>

[Mesa-dev] [PATCH V3 00/12] Implement GL_ARB_sample_shading on Intel hardware

2013-10-31 Thread Anuj Phogat
s://github.com/aphogat/mesa.git branch: sample-shading-11 Anuj Phogat (12): mesa: Add infrastructure for GL_ARB_sample_shading mesa: Add new functions and enums required by GL_ARB_sample_shading mesa: Pass number of samples as a program state variable glsl: Add new builtins required by GL_ARB_

[Mesa-dev] [PATCH V3 01/12] mesa: Add infrastructure for GL_ARB_sample_shading

2013-10-31 Thread Anuj Phogat
This patch implements the common support code required for the GL_ARB_sample_shading extension. V2: Move GL_ARB_sample_shading to ARB extension list. Signed-off-by: Anuj Phogat Reviewed-by: Ian Romanick Reviewed-by: Ken Graunke --- src/glsl/glcpp/glcpp-parse.y| 3 +++ src/glsl

[Mesa-dev] [PATCH V3 07/12] i965: Add FS backend for builtin gl_SamplePosition

2013-10-31 Thread Anuj Phogat
V2: - Update comments. - Add compute_pos_offset variable in brw_wm_prog_key. - Add variable uses_pos_offset in brw_wm_prog_data. V3: - Make changes to support simd16 mode. Signed-off-by: Anuj Phogat Reviewed-by: Paul Berry --- src/mesa/drivers/dri/i965/brw_context.h | 1

[Mesa-dev] [PATCH V3 08/12] i965: Add FS backend for builtin gl_SampleID

2013-10-31 Thread Anuj Phogat
V2: - Update comments - Add compute_sample_id variables in brw_wm_prog_key - Add a special backend instruction to compute sample_id. V3: - Make changes to support simd16 mode. Signed-off-by: Anuj Phogat Reviewed-by: Paul Berry --- src/mesa/drivers/dri/i965/brw_defines.h

[Mesa-dev] [PATCH V3 11/12] i965/gen7: Enable the features required for GL_ARB_sample_shading

2013-10-31 Thread Anuj Phogat
x27;simd8 only' mode in case of non 1x per sample shading. Signed-off-by: Anuj Phogat Reviewed-by: Paul Berry --- src/mesa/drivers/dri/i965/gen7_wm_state.c | 61 --- 1 file changed, 56 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/ge

[Mesa-dev] [PATCH V3 12/12] i965: Enable ARB_sample_shading on intel hardware >= gen6

2013-10-31 Thread Anuj Phogat
Signed-off-by: Anuj Phogat Reviewed-by: Paul Berry Reviewed-by: Ken Graunke --- src/mesa/drivers/dri/i965/intel_extensions.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c index abc3176..5eae84f

[Mesa-dev] [PATCH V3 06/12] i965: Don't do vector splitting for ir_var_system_value

2013-10-31 Thread Anuj Phogat
This is required while adding builtin system value vec{2, 3, 4} variables. For example: (declare (sys) vec2 gl_SamplePosition) Without this patch above glsl ir splits in to: (declare (temporary) float gl_SamplePosition_x) (declare (temporary) float gl_SamplePosition_y) Signed-off-by: Anuj Phogat

[Mesa-dev] [PATCH V3 05/12] mesa: Add a helper function _mesa_get_min_invocations_per_fragment()

2013-10-31 Thread Anuj Phogat
This function is used to test if we need to do per sample shading or per fragment shading. V2: Use MAX2() to make sure the function returns a number >= 1. Signed-off-by: Anuj Phogat Reviewed-by: Ian Romanick Reviewed-by: Paul Berry --- src/mesa/program/program.c |

[Mesa-dev] [PATCH V3 10/12] i965/gen6: Enable the features required for GL_ARB_sample_shading

2013-10-31 Thread Anuj Phogat
x27;simd8 only' mode in case of non 1x per sample shading. Signed-off-by: Anuj Phogat Reviewed-by: Paul Berry --- src/mesa/drivers/dri/i965/gen6_wm_state.c | 61 --- 1 file changed, 56 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/ge

[Mesa-dev] [PATCH V3 04/12] glsl: Add new builtins required by GL_ARB_sample_shading

2013-10-31 Thread Anuj Phogat
SampleMask[] array. - Make gl_SampleID and gl_SamplePosition system values. Signed-off-by: Anuj Phogat Reviewed-by: Paul Berry Reviewed-by: Ian Romanick --- src/glsl/builtin_variables.cpp | 18 ++ src/mesa/main/mtypes.h | 10 +- src/mesa/program/prog_print.c

[Mesa-dev] [PATCH V3 02/12] mesa: Add new functions and enums required by GL_ARB_sample_shading

2013-10-31 Thread Anuj Phogat
extra_gl40_ARB_sample_shading predicate to get.c. V3: Fix make check failure. Add checks for desktop GL. Use GLfloat in place of GLclampf in glMinSampleShading(). Signed-off-by: Anuj Phogat Reviewed-by: Ken Graunke --- src/mapi/glapi/gen/ARB_sample_shading.xml | 19 +++ src/mapi/glapi/gen/GL4x.xml

[Mesa-dev] [PATCH V3 09/12] i965: Add FS backend for builtin gl_SampleMask[]

2013-10-31 Thread Anuj Phogat
. Signed-off-by: Anuj Phogat Reviewed-by: Paul Berry --- src/mesa/drivers/dri/i965/brw_context.h| 1 + src/mesa/drivers/dri/i965/brw_defines.h| 1 + src/mesa/drivers/dri/i965/brw_fs.h | 5 +++ src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 42

[Mesa-dev] [PATCH V3 03/12] mesa: Pass number of samples as a program state variable

2013-10-31 Thread Anuj Phogat
Number of samples will be required in fragment shader program by new GLSL builtin uniform "gl_NumSamples". V2: Use "state.numsamples" in place of "state.num.samples" Use _NEW_BUFFERS flag in place of _NEW_MULTISAMPLE Signed-off-by: Anuj Phogat Reviewed-by:

[Mesa-dev] [PATCH] i965: Fix 'SIMD16 only' dispatch of fragment shader in case of sample shading

2013-11-04 Thread Anuj Phogat
This patch make changes to correctly set up the Dispatch GRF Start Register in case of 'SIMD16 only' FS dispatch. This fixes an issue of incorrect rendering on dolphin emulator with GL_SAMPLE_SHADING enabled. Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/gen6_wm_st

[Mesa-dev] [PATCH] i965: Delete #define's and use local variables inside function

2013-11-07 Thread Anuj Phogat
X_f, Y_f, Xp_f, Yp_f variables are used just inside translate_dst_to_src().So, they can be defined just as local variables. Signed-off-by: Anuj Phogat --- I think I missed this change during the review of my single sample scaled blit patches. src/mesa/drivers/dri/i965/brw_blorp_blit.cpp | 13

Re: [Mesa-dev] [PATCH 08/15] i965: Reserve space for "Vertex Count" in GS outputs.

2013-11-13 Thread Anuj Phogat
On Tue, Nov 12, 2013 at 5:51 PM, Kenneth Graunke wrote: > Signed-off-by: Kenneth Graunke > --- > src/mesa/drivers/dri/i965/brw_vec4_gs.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/src/mesa/drivers/dri/i965/brw_vec4_gs.c > b/src/mesa/drivers/dri/i965/brw_vec4_gs.c > index b52

Re: [Mesa-dev] [PATCH 01/15] i965/fs: Remove force_sechalf stack

2013-11-13 Thread Anuj Phogat
; -pop_force_sechalf(); > color.sechalf = false; >} > } > @@ -2923,7 +2920,6 @@ fs_visitor::fs_visitor(struct brw_context *brw, > this->nr_params_remap = 0; > > this->force_uncompressed_stack = 0; > - this->force_sechalf_stack =

[Mesa-dev] [PATCH 14/15] mesa: Add utility function _mesa_is_enum_format_unorm()

2014-06-06 Thread Anuj Phogat
Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/glformats.c | 67 +++ src/mesa/main/glformats.h | 3 +++ 2 files changed, 70 insertions(+) diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index b95ecea..8107757 100644 --- a/src

[Mesa-dev] [PATCH 07/15] mesa: Add error condition for using compressed internalformat in glTexStorage3D()

2014-06-06 Thread Anuj Phogat
Fixes gles3 Khronos CTS test: texture_storage_texture_internal_formats Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/texstorage.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c index 44b5374..897d589 100644

[Mesa-dev] [PATCH 01/15] glsl: Add __FILE__ and __LINE__ as built-in macros

2014-06-06 Thread Anuj Phogat
A compile error will be generated for redefinition of these macros. Cc: Signed-off-by: Anuj Phogat --- src/glsl/glcpp/glcpp-parse.y | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y index 9887583..2ddc8b9 100644 --- a/src/glsl

[Mesa-dev] [PATCH 15/15] mesa: Add gles3 condition for normalized internal formats in glCopyTexImage*()

2014-06-06 Thread Anuj Phogat
Fixes many failures in gles3 Khronos CTS test: packed_pixels Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/teximage.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 11b8439..a09d994 100644 --- a/src/mesa/main

[Mesa-dev] [PATCH 08/15] mesa: Fix condition for using compressed internalformat in glCompressedTexImage3D()

2014-06-06 Thread Anuj Phogat
Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/teximage.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index b8627a3..03ebbd8 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -2262,7

[Mesa-dev] [PATCH 04/15] glsl: Add preprocessor error condition for #else directive

2014-06-06 Thread Anuj Phogat
Fixes gles3 Khronos CTS tests: tokens_after_else_vertex tokens_after_else_fragment Cc: Signed-off-by: Anuj Phogat --- src/glsl/glcpp/glcpp-lex.l | 4 1 file changed, 4 insertions(+) diff --git a/src/glsl/glcpp/glcpp-lex.l b/src/glsl/glcpp/glcpp-lex.l index 188e454..393db81 100644 --- a

[Mesa-dev] [PATCH 03/15] glsl: Fix preprocessor error condition for macro redefinition

2014-06-06 Thread Anuj Phogat
This patch specifically fixes redefinition condition for white space changes. #define and #undef functionality in GLSL follows the standard for C++ preprocessors for macro definitions. >From https://gcc.gnu.org/onlinedocs/cpp/Undefining-and-Redefining-Macros.html: These definitions are effectivel

[Mesa-dev] [PATCH 00/15] Fix mesa bugs identified by Khronos GLES3 conformance tests

2014-06-06 Thread Anuj Phogat
Patches in this series fix few preprocessor bugs and GLES3 error conditions. This series is also available on 'review' branch at: https://github.com/aphogat/mesa.git Anuj Phogat (15): glsl: Add __FILE__ and __LINE__ as built-in macros glsl: Do not allow undefining the built-in mac

[Mesa-dev] [PATCH 10/15] mesa: Don't allow snorm internal formats in glCopyTexImage*() in GLES3

2014-06-06 Thread Anuj Phogat
Fixes few failures in gles3 Khronos CTS test: packed_pixels Cc: "10.2" Signed-off-by: Anuj Phogat --- src/mesa/main/teximage.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 03ebbd8..6474dba 100644 --- a/src

[Mesa-dev] [PATCH 09/15] mesa: Add utility function mesa_is_enum_format_snorm()

2014-06-06 Thread Anuj Phogat
Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/glformats.c | 37 + src/mesa/main/glformats.h | 3 +++ 2 files changed, 40 insertions(+) diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index 9bb341c..05a3842 100644 --- a/src/mesa/main

[Mesa-dev] [PATCH 02/15] glsl: Do not allow undefining the built-in macros

2014-06-06 Thread Anuj Phogat
undefine_invalid_object_2_fragment Cc: Signed-off-by: Anuj Phogat --- src/glsl/glcpp/glcpp-parse.y | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y index 2ddc8b9..befd7d0 100644 --- a/src/glsl/glcpp/glcpp-parse.y +++ b/src/glsl/glcpp/glcpp-parse.y @@ -260,6

[Mesa-dev] [PATCH 06/15] mesa: Turn target_can_be_compressed() in to a utility function

2014-06-06 Thread Anuj Phogat
Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/glformats.h | 3 +++ src/mesa/main/teximage.c | 12 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/glformats.h b/src/mesa/main/glformats.h index af10899..5c3b2e3 100644 --- a/src/mesa/main/glformats.h

[Mesa-dev] [PATCH 12/15] mesa: Add a gles3 error condition for sized internalformat in glCopyTexImage*()

2014-06-06 Thread Anuj Phogat
Fixes many failures in gles3 Khronos CTS test: packed_pixels Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/teximage.c | 43 +++ 1 file changed, 43 insertions(+) diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 6474dba..c926a2f

[Mesa-dev] [PATCH 05/15] mesa: Fix error condition for valid texture targets in glTexStorage* functions

2014-06-06 Thread Anuj Phogat
Fixes gles3 Khronos CTS test: texture_storage_texture_targets Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/texstorage.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c index 86c8f3c..44b5374 100644 --- a/src/mesa/main

[Mesa-dev] [PATCH 11/15] mesa: Add a helper function _mesa_is_enum_format_unsized()

2014-06-06 Thread Anuj Phogat
Function is utilized by next patch in the series. Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/glformats.c | 18 ++ src/mesa/main/glformats.h | 3 +++ 2 files changed, 21 insertions(+) diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index 05a3842

[Mesa-dev] [PATCH 13/15] mesa: Add gles3 error condition for GL_RGBA10_A2 buffer format in glCopyTexImage*()

2014-06-06 Thread Anuj Phogat
Fixes many failures in gles3 Khronos CTS test: packed_pixels Khronos bug# 9807 Cc: Signed-off-by: Anuj Phogat Signed-off-by: Anuj Phogat --- src/mesa/main/teximage.c | 45 - 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/src/mesa

Re: [Mesa-dev] [PATCH 01/15] glsl: Add __FILE__ and __LINE__ as built-in macros

2014-06-07 Thread Anuj Phogat
On Fri, Jun 6, 2014 at 9:03 PM, Matt Turner wrote: > On Fri, Jun 6, 2014 at 4:56 PM, Anuj Phogat wrote: >> A compile error will be generated for redefinition of these macros. >> >> Cc: >> Signed-off-by: Anuj Phogat >> --- >> src/glsl/glcpp/glcpp-parse.y

Re: [Mesa-dev] [PATCH 04/15] glsl: Add preprocessor error condition for #else directive

2014-06-09 Thread Anuj Phogat
d. > > NOTE: This is a candidate for the stable branch > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56442 > Fixes: preprocess17_frag.test from oglconform > Reviewed-by: Carl Worth (glcpp-parse.y) > Acked-by: Ian Romanick > Reviewed

Re: [Mesa-dev] [PATCH 10/15] mesa: Don't allow snorm internal formats in glCopyTexImage*() in GLES3

2014-06-09 Thread Anuj Phogat
On Fri, Jun 6, 2014 at 5:41 PM, Marek Olšák wrote: > Since this seems to be a GLES-only limitation, the patch should use > _mesa_is_gles3 or _mesa_is_gles. > These changes occur inside a 'if' block testing for gles3 context. > Marek > > On Sat, Jun 7, 2014 at

Re: [Mesa-dev] [PATCH 04/15] glsl: Add preprocessor error condition for #else directive

2014-06-09 Thread Anuj Phogat
On Mon, Jun 9, 2014 at 11:44 AM, Matt Turner wrote: > On Mon, Jun 9, 2014 at 11:40 AM, Anuj Phogat wrote: >> On Fri, Jun 6, 2014 at 9:42 PM, Ian Romanick wrote: >>> I thought Matt already fixed this bug. >> A basic testing shows that below commit fixed the "gar

Re: [Mesa-dev] [PATCH 1/7] main/extensions: Don't advertise unknown extensions overrides with (-)

2014-06-09 Thread Anuj Phogat
g list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev Did a basic testing with your branch. Things seem to work fine. This series 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] [Mesa-stable] [PATCH 13/15] mesa: Add gles3 error condition for GL_RGBA10_A2 buffer format in glCopyTexImage*()

2014-06-11 Thread Anuj Phogat
Adding mesa-dev in CC. On Wed, Jun 11, 2014 at 10:39 AM, Courtney Goeltzenleuchter < court...@lunarg.com> wrote: > > > > On Fri, Jun 6, 2014 at 5:57 PM, Anuj Phogat wrote: > >> Fixes many failures in gles3 Khronos CTS test: packed_pixels >> >> Khronos b

Re: [Mesa-dev] [PATCH 12/15] mesa: Add a gles3 error condition for sized internalformat in glCopyTexImage*()

2014-06-11 Thread Anuj Phogat
Adding mesa-dev to the conversation. On Wed, Jun 11, 2014 at 10:52 AM, Anuj Phogat wrote: > > On Wed, Jun 11, 2014 at 10:28 AM, Courtney Goeltzenleuchter > wrote: >> >> On Fri, Jun 6, 2014 at 5:57 PM, Anuj Phogat wrote: >>> >>> Fixes many failures i

[Mesa-dev] [PATCH 6.5/15] mesa: Allow GL_TEXTURE_CUBE_MAP target with compressed internal formats

2014-06-11 Thread Anuj Phogat
GL_TEXTURE_CUBE_MAP is an allowed texture target in glTexStorage2D() and is allowed to be used (like GL_TEXTURE_2D) with compressed internal formats. Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/teximage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/teximage.c b/src

Re: [Mesa-dev] [PATCH 02/15] glsl: Do not allow undefining the built-in macros

2014-06-11 Thread Anuj Phogat
On Wed, Jun 11, 2014 at 5:32 PM, Carl Worth wrote: > Anuj Phogat writes: >> Fixes piglit tests in spec/glsl-es-3.00/compile: >> undef-__FILE__.vert >> undef-GL_ES.vert >> undef-__LINE__.vert >> undef-__VERSION__.vert > > I see the code that will fix __FILE_

Re: [Mesa-dev] [Mesa-stable] [PATCH 04/15] glsl: Add preprocessor error condition for #else directive

2014-06-11 Thread Anuj Phogat
On Wed, Jun 11, 2014 at 6:51 PM, Carl Worth wrote: > Anuj Phogat writes: > >> #if 0 > >> #else garbage > >> #endif > >> > >> The Khronos test contains two tokens after #else. I'm not sure if that > >> is the difference or not. &

Re: [Mesa-dev] [PATCH] glsl: Fix glcpp to properly lex entire "preprocessing numbers"

2014-06-12 Thread Anuj Phogat
00644 > index 000..951581e > --- /dev/null > +++ b/src/glsl/glcpp/tests/124-preprocessing-numbers.c.expected > @@ -0,0 +1,9 @@ > + > + > + > + > + > +int n = 1e; > +int p = 1xyz; > + > + > -- > 2.0.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 v2] glsl: Fix glcpp to catch garbage after #if 1 ... #else

2014-06-12 Thread Anuj Phogat
0 > --- a/src/glsl/glcpp/tests/103-garbage-after-else.c.expected > +++ /dev/null > @@ -1,4 +0,0 @@ > -0:2(7): preprocessor error: syntax error, unexpected IDENTIFIER, expecting > NEWLINE > -0:1(7): preprocessor error: Unterminated #if > - > - > diff --git a/src/glsl/glcpp/tes

Re: [Mesa-dev] [PATCH 04/15] glsl: Add preprocessor error condition for #else directive

2014-06-13 Thread Anuj Phogat
On Thu, Jun 12, 2014 at 11:42 PM, Tapani Pälli wrote: > On 06/07/2014 02:57 AM, Anuj Phogat wrote: >> Fixes gles3 Khronos CTS tests: >> tokens_after_else_vertex >> tokens_after_else_fragment >> >> Cc: >> Signed-off-by: Anuj Phogat >> --- >&

Re: [Mesa-dev] [PATCH] Add test to ensure compiler won't allow #undef for some builtins

2014-06-16 Thread Anuj Phogat
): preprocessor error: Built-in (pre-defined) macro names can not be > undefined. > +0:3(1): preprocessor error: Built-in (pre-defined) macro names can not be > undefined. > + > + > + > + > -- > 2.0.0 > > ___ > mesa-de

Re: [Mesa-dev] [PATCH] glsl: Fixup glcpp tests for redefining a macro with whitespace changes.

2014-06-16 Thread Anuj Phogat
efinition of macro FOUR > + > +0:16(9): preprocessor error: Redefinition of macro SIX > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > + > -- > 2.0.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] [v8 9/9] i965: enable image external sampling for imported dma-buffers

2014-06-18 Thread Anuj Phogat
On Wed, Jul 24, 2013 at 5:06 PM, Chad Versace wrote: > This patch is > Reviewed-by: Chad Versace > with the understanding that it depends on previous patches. > > I'll begin reviewing your Piglit tests now. > > > On 07/24/2013 03:23 AM, Topi Pohjolainen wrote: >> >> Signed-off-by: Topi Pohjolaine

[Mesa-dev] [PATCH] egl: Fix OpenGL ES version checks in _eglParseContextAttribList()

2014-06-18 Thread Anuj Phogat
Fixes gles3 Khronos CTS test: egl_create_context.egl_create_context Cc: Signed-off-by: Anuj Phogat --- src/egl/main/eglcontext.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c index 70277ab..b8b30cb 100644

Re: [Mesa-dev] [PATCH] glsl: Fix glcpp to properly lex entire "preprocessing numbers"

2014-06-19 Thread Anuj Phogat
On Thu, Jun 12, 2014 at 5:18 PM, Anuj Phogat wrote: > On Thu, Jun 12, 2014 at 3:13 PM, Carl Worth wrote: >> >> The preprocessor defines a notions of a "preprocessing number" that >> starts with either a digit or a decimal point, and continues with zero >&

Re: [Mesa-dev] [PATCH v3] glsl/glcpp: Fix glcpp to properly lex entire "preprocessing numbers"

2014-07-01 Thread Anuj Phogat
t), will be > passed on as-is from the preprocessor to the compiler proper. > > This fixes the following Khronos GLES3 CTS tests: > > preprocessor.basic.correct_phases_vertex > preprocessor.basic.correct_phases_fragment > > v2. Thanks to Anuj Phogat for im

Re: [Mesa-dev] [PATCH v2] glsl: handle a switch where default is in the middle of cases

2014-07-09 Thread Anuj Phogat
On Thu, Jun 19, 2014 at 6:11 AM, Tapani Pälli wrote: > This fixes following tests in es3conform: > >shaders.switch.default_not_last_dynamic_vertex >shaders.switch.default_not_last_dynamic_fragment > > and makes following tests in Piglit pass: > >glsl-1.30/execution/switch/fs-default-no

[Mesa-dev] [PATCH] i965: Fix z_offset computation in intel_miptree_unmap_depthstencil()

2014-07-16 Thread Anuj Phogat
npot_pbo_tex_sub_image_2d Cc: Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 2ab0faa..b36ffc7

[Mesa-dev] [PATCH] Revert "i965: Extend compute-to-mrf pass to understand blocks of MOVs"

2014-07-16 Thread Anuj Phogat
sions. Signed-off-by: Anuj Phogat Acked-by: Kristian Høgsberg --- src/mesa/drivers/dri/i965/brw_fs.cpp | 63 ++-- 1 file changed, 10 insertions(+), 53 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index a3

Re: [Mesa-dev] [PATCH] glapi: add indexed blend functions (GL 4.0)

2014-07-16 Thread Anuj Phogat
, > + { "glBlendFunci", 40, -1 }, > + { "glBlendFuncSeparatei", 40, -1 }, > > /* GL 4.3 */ > { "glIsRenderbuffer", 43, -1 }, > -- > 1.9.3 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev I agree with Ken's comment# 11 on bugzilla. Acked-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 2/2] i965/fs: Set force_uncompressed and force_sechalf on samplepos setup.

2014-07-16 Thread Anuj Phogat
inst = emit(MOV(half(int_sample_y, 1), > + fs_reg(suboffset(sample_pos_reg, 17; >inst->force_sechalf = true; > } > /* Compute gl_SamplePosition.y */ > -- > 2.0.0 > > ___

[Mesa-dev] [PATCH] mesa: Don't use memcpy() in _mesa_texstore() for depth texture data

2014-07-18 Thread Anuj Phogat
because depth texture data needs clamping to [0.0, 1.0]. Let the _mesa_texstore() fallback to slower path. Fixes Khronos GLES3 CTS tests: shadow_execution_vert shadow_execution_frag Cc: Signed-off-by: Anuj Phogat --- src/mesa/main/texstore.c | 4 ++-- 1 file changed, 2 insertions(+), 2

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