aboutsummaryrefslogtreecommitdiff
path: root/mesalib
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-08-10 08:42:07 +0200
committermarha <marha@users.sourceforge.net>2011-08-10 08:42:07 +0200
commit8e57a7fcbf736b8e437baf0bbccb93095d97617f (patch)
treeee3344cfe8cfa5ce370892e341dec494e7d95787 /mesalib
parent4a9b92fdef532c911a0ac7d52e8ce2e77d424a18 (diff)
parentfd1f4d9fe3ea67fa6def8ee4927a8f71e0440f12 (diff)
downloadvcxsrv-8e57a7fcbf736b8e437baf0bbccb93095d97617f.tar.gz
vcxsrv-8e57a7fcbf736b8e437baf0bbccb93095d97617f.tar.bz2
vcxsrv-8e57a7fcbf736b8e437baf0bbccb93095d97617f.zip
Merge remote-tracking branch 'origin/released'
Conflicts: mesalib/docs/GL3.txt
Diffstat (limited to 'mesalib')
-rw-r--r--mesalib/docs/GL3.txt13
-rw-r--r--mesalib/src/mesa/state_tracker/st_glsl_to_tgsi.cpp8
-rw-r--r--mesalib/src/mesa/swrast/s_span.c2
3 files changed, 19 insertions, 4 deletions
diff --git a/mesalib/docs/GL3.txt b/mesalib/docs/GL3.txt
index d81ef5201..c3a2472cf 100644
--- a/mesalib/docs/GL3.txt
+++ b/mesalib/docs/GL3.txt
@@ -114,6 +114,19 @@ GL_ARB_vertex_attrib_64bit not started
GL_ARB_viewport_array not started
+GL 4.2:
+GLSL 4.2 not started
+GL_ARB_texture_compression_bptc not started
+GL_ARB_compressed_texture_pixel_storage not started
+GL_ARB_shader_atomic_counters not started
+GL_ARB_texture_storage not started
+GL_ARB_transform_feedback_instanced not started
+GL_ARB_base_instance not started
+GL_ARB_shader_image_load_store not started
+GL_ARB_conservative_depth not started (may be close to AMD_conservative_depth though)
+GL_ARB_shading_language_420pack not started
+GL_ARB_internalformat_query not started
+GL_ARB_map_buffer_alignment not started
More info about these features and the work involved can be found at
diff --git a/mesalib/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/mesalib/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index d7a1ba80e..aef23e7d2 100644
--- a/mesalib/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/mesalib/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -1994,15 +1994,17 @@ glsl_to_tgsi_visitor::visit(ir_assignment *ir)
} else if (ir->rhs->as_expression() &&
this->instructions.get_tail() &&
ir->rhs == ((glsl_to_tgsi_instruction *)this->instructions.get_tail())->ir &&
- type_size(ir->lhs->type) == 1) {
+ type_size(ir->lhs->type) == 1 &&
+ l.writemask == ((glsl_to_tgsi_instruction *)this->instructions.get_tail())->dst.writemask) {
/* To avoid emitting an extra MOV when assigning an expression to a
* variable, emit the last instruction of the expression again, but
* replace the destination register with the target of the assignment.
* Dead code elimination will remove the original instruction.
*/
- glsl_to_tgsi_instruction *inst;
+ glsl_to_tgsi_instruction *inst, *new_inst;
inst = (glsl_to_tgsi_instruction *)this->instructions.get_tail();
- emit(ir, inst->op, l, inst->src[0], inst->src[1], inst->src[2]);
+ new_inst = emit(ir, inst->op, l, inst->src[0], inst->src[1], inst->src[2]);
+ new_inst->saturate = inst->saturate;
} else {
for (i = 0; i < type_size(ir->lhs->type); i++) {
emit(ir, TGSI_OPCODE_MOV, l, r);
diff --git a/mesalib/src/mesa/swrast/s_span.c b/mesalib/src/mesa/swrast/s_span.c
index db102ac79..9a91be399 100644
--- a/mesalib/src/mesa/swrast/s_span.c
+++ b/mesalib/src/mesa/swrast/s_span.c
@@ -212,10 +212,10 @@ interpolate_active_attribs(struct gl_context *ctx, SWspan *span, GLbitfield attr
static INLINE void
interpolate_int_colors(struct gl_context *ctx, SWspan *span)
{
+#if CHAN_BITS != 32
const GLuint n = span->end;
GLuint i;
-#if CHAN_BITS != 32
ASSERT(!(span->arrayMask & SPAN_RGBA));
#endif