[Mesa-dev] [RFC PATCH 6/5] mesa: add statevar for sample position palette

2013-11-10 Thread Chris Forbes
Signed-off-by: Chris Forbes DrawBuffer->Visual.samples; return; + case STATE_SAMPLE_POSITIONS: + { + int i; + for (i = 0; i < ctx->DrawBuffer->Visual.samples; i++) { +ctx->Driver.GetSamplePosition(ctx, ctx->DrawBuffer, i, &value[2 * i]); + } +

[Mesa-dev] [RFC PATCH 7/5] glsl: add builtin uniform for sample positions palette

2013-11-10 Thread Chris Forbes
Signed-off-by: Chris Forbes --- src/glsl/builtin_variables.cpp | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp index 4d44104..796e18e 100644 --- a/src/glsl/builtin_variables.cpp +++ b/src/glsl/builtin_variables.cpp @@ -34,6

[Mesa-dev] [PATCH] meta: rebind the array object to prevent corruption of current one in setup_glsl_blit_framebuffer

2013-11-10 Thread Petr Sebor
Without the rebind, the function enables generic vertex attributes 0 and 1 of the array object it does not own. This was causing crashes in Euro Truck Simulator 2, since the enabled generic attribute 0 got precedence before vertex position attribute at later time, leading to NULL pointer derefer

Re: [Mesa-dev] [PATCH] glx: Fix scons build.

2013-11-10 Thread Jose Fonseca
- Original Message - > On Fri, Nov 8, 2013 at 9:55 AM, wrote: > > From: José Fonseca > > > > By disabling DRI3 support for the time being. > > > > I'll add DRI3 support to scons build when the DRI3 dependencies become > > more widely available (as now there is no convenient way of test

Re: [Mesa-dev] [RFC PATCH 0/5] ARB_gpu_shader5 interpolateAt* GLSL plumbing

2013-11-10 Thread Paul Berry
On 10 November 2013 00:51, Chris Forbes wrote: > Here is the driver-independent part of ARB_gpu_shader5's > interpolateAtCentroid, interpolateAtOffset builtins. > > Before I go further with this approach, I'd like feedback on the following: > > 1) I've (ab)used ir_var_shader_in variable mode in f

[Mesa-dev] [RFC PATCH 2/5] glsl: add ir_unop_interpolate_at_centroid

2013-11-10 Thread Chris Forbes
Will be used to implement interpolateAtCentroid() from ARB_gpu_shader5. Signed-off-by: Chris Forbes --- src/glsl/ir.cpp| 2 ++ src/glsl/ir.h | 9 - src/glsl/ir_builder.cpp| 6 ++ src/glsl/ir_builder.h

[Mesa-dev] [RFC PATCH 5/5] glsl: add interpolateAtOffset builtin

2013-11-10 Thread Chris Forbes
Signed-off-by: Chris Forbes --- src/glsl/builtin_functions.cpp | 19 +++ 1 file changed, 19 insertions(+) diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index 3ea3a3f..c55115c 100644 --- a/src/glsl/builtin_functions.cpp +++ b/src/glsl/builtin_functio

[Mesa-dev] [RFC PATCH 3/5] glsl: add ir_binop_interpolate_at_offset

2013-11-10 Thread Chris Forbes
Will be used to implement interpolateAtOffset() and interpolateAtSample() from ARB_gpu_shader5. Signed-off-by: Chris Forbes --- src/glsl/ir.cpp| 2 ++ src/glsl/ir.h | 10 +- src/glsl/ir_builder.cpp| 6 ++

[Mesa-dev] [RFC PATCH 0/5] ARB_gpu_shader5 interpolateAt* GLSL plumbing

2013-11-10 Thread Chris Forbes
Here is the driver-independent part of ARB_gpu_shader5's interpolateAtCentroid, interpolateAtOffset builtins. Before I go further with this approach, I'd like feedback on the following: 1) I've (ab)used ir_var_shader_in variable mode in function signatures to enforce the strange restrictions inte

[Mesa-dev] [RFC PATCH 4/5] glsl: add interpolateAtCentroid builtin

2013-11-10 Thread Chris Forbes
Signed-off-by: Chris Forbes --- src/glsl/builtin_functions.cpp | 18 ++ 1 file changed, 18 insertions(+) diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index 8cb75e5..3ea3a3f 100644 --- a/src/glsl/builtin_functions.cpp +++ b/src/glsl/builtin_function