Mesa (master): ARB_texture_rg: Add GLX protocol support

Ian Romanick idr at kemper.freedesktop.org
Fri Oct 1 22:56:18 UTC 2010


Module: Mesa
Branch: master
Commit: bb45ab0a96bd17bc4c575ef5460d5c65acd8768b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb45ab0a96bd17bc4c575ef5460d5c65acd8768b

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Fri Nov 20 11:03:31 2009 -0800

ARB_texture_rg: Add GLX protocol support

---

 src/glx/compsize.c      |    1 +
 src/glx/glxextensions.c |    1 +
 src/glx/glxextensions.h |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/glx/compsize.c b/src/glx/compsize.c
index ccb3a0e..f69ffab 100644
--- a/src/glx/compsize.c
+++ b/src/glx/compsize.c
@@ -66,6 +66,7 @@ __glElementsPerGroup(GLenum format, GLenum type)
    case GL_RGB:
    case GL_BGR:
       return 3;
+   case GL_RG:
    case GL_422_EXT:
    case GL_422_REV_EXT:
    case GL_422_AVERAGE_EXT:
diff --git a/src/glx/glxextensions.c b/src/glx/glxextensions.c
index 23161ef..3a0e64c 100644
--- a/src/glx/glxextensions.c
+++ b/src/glx/glxextensions.c
@@ -165,6 +165,7 @@ static const struct extension_info known_gl_extensions[] = {
    { GL(ARB_texture_mirrored_repeat),    VER(1,4), Y, N, N, N },
    { GL(ARB_texture_non_power_of_two),   VER(1,5), Y, N, N, N },
    { GL(ARB_texture_rectangle),          VER(0,0), Y, N, N, N },
+   { GL(ARB_texture_rg),                 VER(0,0), Y, N, N, N },
    { GL(ARB_transpose_matrix),           VER(1,3), Y, N, Y, N },
    { GL(ARB_vertex_buffer_object),       VER(1,5), N, N, N, N },
    { GL(ARB_vertex_program),             VER(0,0), Y, N, N, N },
diff --git a/src/glx/glxextensions.h b/src/glx/glxextensions.h
index a11fe88..7877661 100644
--- a/src/glx/glxextensions.h
+++ b/src/glx/glxextensions.h
@@ -93,6 +93,7 @@ enum
    GL_ARB_texture_mirrored_repeat_bit,
    GL_ARB_texture_non_power_of_two_bit,
    GL_ARB_texture_rectangle_bit,
+   GL_ARB_texture_rg_bit,
    GL_ARB_transpose_matrix_bit,
    GL_ARB_vertex_buffer_object_bit,
    GL_ARB_vertex_program_bit,




More information about the mesa-commit mailing list