diff options
-rw-r--r-- | libX11/src/SetLocale.c | 1 | ||||
-rw-r--r-- | libxcb/src/c_client.py | 2 | ||||
-rw-r--r-- | libxcb/xcb-proto/src/sync.xml | 425 | ||||
-rw-r--r-- | mesalib/src/mesa/main/dlist.c | 6 | ||||
-rw-r--r-- | mesalib/src/mesa/program/programopt.c | 6 |
5 files changed, 240 insertions, 200 deletions
diff --git a/libX11/src/SetLocale.c b/libX11/src/SetLocale.c index 6741f2a5d..81c946cdf 100644 --- a/libX11/src/SetLocale.c +++ b/libX11/src/SetLocale.c @@ -63,6 +63,7 @@ from The Open Group. #include <X11/Xlocale.h>
#include <X11/Xos.h>
#include "XlcPubI.h"
+#include <unistd.h>
#define MAXLOCALE 64 /* buffer size of locale name */
diff --git a/libxcb/src/c_client.py b/libxcb/src/c_client.py index f93e2a69d..077f0854c 100644 --- a/libxcb/src/c_client.py +++ b/libxcb/src/c_client.py @@ -2291,7 +2291,7 @@ except getopt.GetoptError as err: for (opt, arg) in opts:
if opt == '-p':
- sys.path.append(arg)
+ sys.path.insert(1, arg)
# Import the module class
try:
diff --git a/libxcb/xcb-proto/src/sync.xml b/libxcb/xcb-proto/src/sync.xml index e30923325..f690cca04 100644 --- a/libxcb/xcb-proto/src/sync.xml +++ b/libxcb/xcb-proto/src/sync.xml @@ -1,196 +1,229 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -Copyright (C) 2004 Mikko Torni and Josh Triplett. -All Rights Reserved. See the file COPYING in this directory -for licensing information. ---> -<xcb header="sync" extension-xname="SYNC" extension-name="Sync" - major-version="3" minor-version="0"> - <import>xproto</import> - - <xidtype name="ALARM" /> - - <enum name="ALARMSTATE"> - <item name="Active" /> - <item name="Inactive" /> - <item name="Destroyed" /> - </enum> - - <xidtype name="COUNTER" /> - - <enum name="TESTTYPE"> - <item name="PositiveTransition" /> - <item name="NegativeTransition" /> - <item name="PositiveComparison" /> - <item name="NegativeComparison" /> - </enum> - - <enum name="VALUETYPE"> - <item name="Absolute" /> - <item name="Relative" /> - </enum> - - <enum name="CA"> - <item name="Counter"> <bit>0</bit></item> - <item name="ValueType"><bit>1</bit></item> - <item name="Value"> <bit>2</bit></item> - <item name="TestType"> <bit>3</bit></item> - <item name="Delta"> <bit>4</bit></item> - <item name="Events"> <bit>5</bit></item> - </enum> - - <struct name="INT64"> - <field type="INT32" name="hi" /> - <field type="CARD32" name="lo" /> - </struct> - - <struct name="SYSTEMCOUNTER"> - <field type="COUNTER" name="counter" /> - <field type="INT64" name="resolution" /> - <field type="CARD16" name="name_len" /> - <list type="char" name="name"> - <fieldref>name_len</fieldref> - </list> - </struct> - - <struct name="TRIGGER"> - <field type="COUNTER" name="counter" /> - <field type="CARD32" name="wait_type" enum="VALUETYPE" /> - <field type="INT64" name="wait_value" /> - <field type="CARD32" name="test_type" enum="TESTTYPE" /> - </struct> - - <struct name="WAITCONDITION"> - <field type="TRIGGER" name="trigger" /> - <field type="INT64" name="event_threshold" /> - </struct> - - <error name="Counter" number="0"> - <field type="CARD32" name="bad_counter" /> - <field type="CARD16" name="minor_opcode" /> - <field type="CARD8" name="major_opcode" /> - </error> - - <error name="Alarm" number="1"> - <field type="CARD32" name="bad_alarm" /> - <field type="CARD16" name="minor_opcode" /> - <field type="CARD8" name="major_opcode" /> - </error> - - <request name="Initialize" opcode="0"> - <field type="CARD8" name="desired_major_version" /> - <field type="CARD8" name="desired_minor_version" /> - <reply> - <pad bytes="1" /> - <field type="CARD8" name="major_version" /> - <field type="CARD8" name="minor_version" /> - <pad bytes="22" /> - </reply> - </request> - - <request name="ListSystemCounters" opcode="1"> - <reply> - <pad bytes="1" /> - <field type="CARD32" name="counters_len" /> - <pad bytes="20" /> - <list type="SYSTEMCOUNTER" name="counters"> - <fieldref>counters_len</fieldref> - </list> - </reply> - </request> - - <request name="CreateCounter" opcode="2"> - <field type="COUNTER" name="id" /> - <field type="INT64" name="initial_value" /> - </request> - - <request name="DestroyCounter" opcode="6"> - <field type="COUNTER" name="counter" /> - </request> - - <request name="QueryCounter" opcode="5"> - <field type="COUNTER" name="counter" /> - <reply> - <pad bytes="1" /> - <field type="INT64" name="counter_value" /> - </reply> - </request> - - <request name="Await" opcode="7"> - <list type="WAITCONDITION" name="wait_list" /> - </request> - - <request name="ChangeCounter" opcode="4"> - <field type="COUNTER" name="counter" /> - <field type="INT64" name="amount" /> - </request> - - <request name="SetCounter" opcode="3"> - <field type="COUNTER" name="counter" /> - <field type="INT64" name="value" /> - </request> - - <request name="CreateAlarm" opcode="8"> - <field type="ALARM" name="id" /> - <valueparam value-mask-type="CARD32" - value-mask-name="value_mask" - value-list-name="value_list" /> - </request> - - <request name="ChangeAlarm" opcode="9"> - <field type="ALARM" name="id" /> - <valueparam value-mask-type="CARD32" - value-mask-name="value_mask" - value-list-name="value_list" /> - </request> - - <request name="DestroyAlarm" opcode="11"> - <field type="ALARM" name="alarm" /> - </request> - - <request name="QueryAlarm" opcode="10"> - <field type="ALARM" name="alarm" /> - <reply> - <pad bytes="1" /> - <field type="TRIGGER" name="trigger" /> - <field type="INT64" name="delta" /> - <field type="BOOL" name="events" /> - <field type="CARD8" name="state" enum="ALARMSTATE" /> - <pad bytes="2" /> - </reply> - </request> - - <request name="SetPriority" opcode="12"> - <field type="CARD32" name="id" /> - <field type="INT32" name="priority" /> - </request> - - <request name="GetPriority" opcode="13"> - <field type="CARD32" name="id" /> - <reply> - <pad bytes="1" /> - <field type="INT32" name="priority" /> - </reply> - </request> - - <event name="CounterNotify" number="0"> - <field type="CARD8" name="kind" /> - <field type="COUNTER" name="counter" /> - <field type="INT64" name="wait_value" /> - <field type="INT64" name="counter_value" /> - <field type="TIMESTAMP" name="timestamp" /> - <field type="CARD16" name="count" /> - <field type="BOOL" name="destroyed" /> - <pad bytes="1" /> - </event> - - <event name="AlarmNotify" number="1"> - <field type="CARD8" name="kind" /> - <field type="ALARM" name="alarm" /> - <field type="INT64" name="counter_value" /> - <field type="INT64" name="alarm_value" /> - <field type="TIMESTAMP" name="timestamp" /> - <field type="CARD8" name="state" enum="ALARMSTATE" /> - <pad bytes="3" /> - </event> -</xcb> +<?xml version="1.0" encoding="utf-8"?>
+<!--
+Copyright (C) 2004 Mikko Torni and Josh Triplett.
+All Rights Reserved. See the file COPYING in this directory
+for licensing information.
+-->
+<xcb header="sync" extension-xname="SYNC" extension-name="Sync"
+ major-version="3" minor-version="1">
+ <import>xproto</import>
+
+ <xidtype name="ALARM" />
+
+ <enum name="ALARMSTATE">
+ <item name="Active" />
+ <item name="Inactive" />
+ <item name="Destroyed" />
+ </enum>
+
+ <xidtype name="COUNTER" />
+
+ <xidtype name="FENCE" />
+
+ <enum name="TESTTYPE">
+ <item name="PositiveTransition" />
+ <item name="NegativeTransition" />
+ <item name="PositiveComparison" />
+ <item name="NegativeComparison" />
+ </enum>
+
+ <enum name="VALUETYPE">
+ <item name="Absolute" />
+ <item name="Relative" />
+ </enum>
+
+ <enum name="CA">
+ <item name="Counter"> <bit>0</bit></item>
+ <item name="ValueType"><bit>1</bit></item>
+ <item name="Value"> <bit>2</bit></item>
+ <item name="TestType"> <bit>3</bit></item>
+ <item name="Delta"> <bit>4</bit></item>
+ <item name="Events"> <bit>5</bit></item>
+ </enum>
+
+ <struct name="INT64">
+ <field type="INT32" name="hi" />
+ <field type="CARD32" name="lo" />
+ </struct>
+
+ <struct name="SYSTEMCOUNTER">
+ <field type="COUNTER" name="counter" />
+ <field type="INT64" name="resolution" />
+ <field type="CARD16" name="name_len" />
+ <list type="char" name="name">
+ <fieldref>name_len</fieldref>
+ </list>
+ </struct>
+
+ <struct name="TRIGGER">
+ <field type="COUNTER" name="counter" />
+ <field type="CARD32" name="wait_type" enum="VALUETYPE" />
+ <field type="INT64" name="wait_value" />
+ <field type="CARD32" name="test_type" enum="TESTTYPE" />
+ </struct>
+
+ <struct name="WAITCONDITION">
+ <field type="TRIGGER" name="trigger" />
+ <field type="INT64" name="event_threshold" />
+ </struct>
+
+ <error name="Counter" number="0">
+ <field type="CARD32" name="bad_counter" />
+ <field type="CARD16" name="minor_opcode" />
+ <field type="CARD8" name="major_opcode" />
+ </error>
+
+ <error name="Alarm" number="1">
+ <field type="CARD32" name="bad_alarm" />
+ <field type="CARD16" name="minor_opcode" />
+ <field type="CARD8" name="major_opcode" />
+ </error>
+
+ <request name="Initialize" opcode="0">
+ <field type="CARD8" name="desired_major_version" />
+ <field type="CARD8" name="desired_minor_version" />
+ <reply>
+ <pad bytes="1" />
+ <field type="CARD8" name="major_version" />
+ <field type="CARD8" name="minor_version" />
+ <pad bytes="22" />
+ </reply>
+ </request>
+
+ <request name="ListSystemCounters" opcode="1">
+ <reply>
+ <pad bytes="1" />
+ <field type="CARD32" name="counters_len" />
+ <pad bytes="20" />
+ <list type="SYSTEMCOUNTER" name="counters">
+ <fieldref>counters_len</fieldref>
+ </list>
+ </reply>
+ </request>
+
+ <request name="CreateCounter" opcode="2">
+ <field type="COUNTER" name="id" />
+ <field type="INT64" name="initial_value" />
+ </request>
+
+ <request name="DestroyCounter" opcode="6">
+ <field type="COUNTER" name="counter" />
+ </request>
+
+ <request name="QueryCounter" opcode="5">
+ <field type="COUNTER" name="counter" />
+ <reply>
+ <pad bytes="1" />
+ <field type="INT64" name="counter_value" />
+ </reply>
+ </request>
+
+ <request name="Await" opcode="7">
+ <list type="WAITCONDITION" name="wait_list" />
+ </request>
+
+ <request name="ChangeCounter" opcode="4">
+ <field type="COUNTER" name="counter" />
+ <field type="INT64" name="amount" />
+ </request>
+
+ <request name="SetCounter" opcode="3">
+ <field type="COUNTER" name="counter" />
+ <field type="INT64" name="value" />
+ </request>
+
+ <request name="CreateAlarm" opcode="8">
+ <field type="ALARM" name="id" />
+ <valueparam value-mask-type="CARD32"
+ value-mask-name="value_mask"
+ value-list-name="value_list" />
+ </request>
+
+ <request name="ChangeAlarm" opcode="9">
+ <field type="ALARM" name="id" />
+ <valueparam value-mask-type="CARD32"
+ value-mask-name="value_mask"
+ value-list-name="value_list" />
+ </request>
+
+ <request name="DestroyAlarm" opcode="11">
+ <field type="ALARM" name="alarm" />
+ </request>
+
+ <request name="QueryAlarm" opcode="10">
+ <field type="ALARM" name="alarm" />
+ <reply>
+ <pad bytes="1" />
+ <field type="TRIGGER" name="trigger" />
+ <field type="INT64" name="delta" />
+ <field type="BOOL" name="events" />
+ <field type="CARD8" name="state" enum="ALARMSTATE" />
+ <pad bytes="2" />
+ </reply>
+ </request>
+
+ <request name="SetPriority" opcode="12">
+ <field type="CARD32" name="id" />
+ <field type="INT32" name="priority" />
+ </request>
+
+ <request name="GetPriority" opcode="13">
+ <field type="CARD32" name="id" />
+ <reply>
+ <pad bytes="1" />
+ <field type="INT32" name="priority" />
+ </reply>
+ </request>
+
+ <request name="CreateFence" opcode="14">
+ <field type="DRAWABLE" name="drawable" />
+ <field type="FENCE" name="fence" />
+ <field type="BOOL" name="initially_triggered" />
+ </request>
+
+ <request name="TriggerFence" opcode="15">
+ <field type="FENCE" name="fence" />
+ </request>
+
+ <request name="ResetFence" opcode="16">
+ <field type="FENCE" name="fence" />
+ </request>
+
+ <request name="DestroyFence" opcode="17">
+ <field type="FENCE" name="fence" />
+ </request>
+
+ <request name="QueryFence" opcode="18">
+ <field type="FENCE" name="fence" />
+ <reply>
+ <pad bytes="1" />
+ <field type="BOOL" name="triggered" />
+ <pad bytes="23" />
+ </reply>
+ </request>
+
+ <request name="AwaitFence" opcode="19">
+ <list type="FENCE" name="fence_list" />
+ </request>
+
+ <event name="CounterNotify" number="0">
+ <field type="CARD8" name="kind" />
+ <field type="COUNTER" name="counter" />
+ <field type="INT64" name="wait_value" />
+ <field type="INT64" name="counter_value" />
+ <field type="TIMESTAMP" name="timestamp" />
+ <field type="CARD16" name="count" />
+ <field type="BOOL" name="destroyed" />
+ <pad bytes="1" />
+ </event>
+
+ <event name="AlarmNotify" number="1">
+ <field type="CARD8" name="kind" />
+ <field type="ALARM" name="alarm" />
+ <field type="INT64" name="counter_value" />
+ <field type="INT64" name="alarm_value" />
+ <field type="TIMESTAMP" name="timestamp" />
+ <field type="CARD8" name="state" enum="ALARMSTATE" />
+ <pad bytes="3" />
+ </event>
+</xcb>
diff --git a/mesalib/src/mesa/main/dlist.c b/mesalib/src/mesa/main/dlist.c index f150d6c7b..64ef98509 100644 --- a/mesalib/src/mesa/main/dlist.c +++ b/mesalib/src/mesa/main/dlist.c @@ -9784,9 +9784,9 @@ _mesa_create_save_table(void) SET_DeleteProgramsNV(table, _mesa_DeletePrograms);
SET_GenProgramsNV(table, _mesa_GenPrograms);
SET_IsProgramNV(table, _mesa_IsProgramARB);
- SET_GetVertexAttribdvNV(table, _mesa_GetVertexAttribdvNV);
- SET_GetVertexAttribfvNV(table, _mesa_GetVertexAttribfvNV);
- SET_GetVertexAttribivNV(table, _mesa_GetVertexAttribivNV);
+ SET_GetVertexAttribdvARB(table, _mesa_GetVertexAttribdvARB);
+ SET_GetVertexAttribfvARB(table, _mesa_GetVertexAttribfvARB);
+ SET_GetVertexAttribivARB(table, _mesa_GetVertexAttribivARB);
SET_GetVertexAttribPointervNV(table, _mesa_GetVertexAttribPointervNV);
SET_ProgramEnvParameter4dARB(table, save_ProgramEnvParameter4dARB);
SET_ProgramEnvParameter4dvARB(table, save_ProgramEnvParameter4dvARB);
diff --git a/mesalib/src/mesa/program/programopt.c b/mesalib/src/mesa/program/programopt.c index a01252dab..62b406653 100644 --- a/mesalib/src/mesa/program/programopt.c +++ b/mesalib/src/mesa/program/programopt.c @@ -267,6 +267,11 @@ _mesa_append_fog_code(struct gl_context *ctx, return;
}
+ if (!(fprog->Base.OutputsWritten & (1 << FRAG_RESULT_COLOR))) {
+ /* program doesn't output color, so nothing to do */
+ return;
+ }
+
/* Alloc storage for new instructions */
newInst = _mesa_alloc_instructions(newLen);
if (!newInst) {
@@ -407,6 +412,7 @@ _mesa_append_fog_code(struct gl_context *ctx, fprog->Base.Instructions = newInst;
fprog->Base.NumInstructions = inst - newInst;
fprog->Base.InputsRead |= FRAG_BIT_FOGC;
+ assert(fprog->Base.OutputsWritten & (1 << FRAG_RESULT_COLOR));
}
|