<br><br><div class="gmail_quote">On Sat, Sep 24, 2011 at 11:13 PM,  <span dir="ltr">&lt;<a href="mailto:mesa-dev-request@lists.freedesktop.org">mesa-dev-request@lists.freedesktop.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Send mesa-dev mailing list submissions to<br>
        <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:mesa-dev-request@lists.freedesktop.org">mesa-dev-request@lists.freedesktop.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:mesa-dev-owner@lists.freedesktop.org">mesa-dev-owner@lists.freedesktop.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of mesa-dev digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. [PATCH 2/4] d3d1x: propagate DepthBiasClamp to    rasterizer cso<br>
      (Christoph Bumiller)<br>
   2. [PATCH 3/4] nv50, nvc0: support polygon offset clamp state<br>
      (Christoph Bumiller)<br>
   3. [PATCH 4/4] r600: support polygon offset clamp state<br>
      (Christoph Bumiller)<br>
   4. Re: Welcome to the &quot;mesa-dev&quot; mailing list (Digest mode)<br>
      (Vivek Singh)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 24 Sep 2011 15:47:22 +0200<br>
From: Christoph Bumiller &lt;<a href="mailto:e0425955@student.tuwien.ac.at">e0425955@student.tuwien.ac.at</a>&gt;<br>
Subject: [Mesa-dev] [PATCH 2/4] d3d1x: propagate DepthBiasClamp to<br>
        rasterizer cso<br>
To: <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:1316872044-23685-2-git-send-email-e0425955@student.tuwien.ac.at">1316872044-23685-2-git-send-email-e0425955@student.tuwien.ac.at</a>&gt;<br>
<br>
---<br>
 .../state_trackers/d3d1x/gd3d11/d3d11_screen.h     |    3 +--<br>
 1 files changed, 1 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h<br>
index 3674731..ef23b7d 100644<br>
--- a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h<br>
+++ b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h<br>
@@ -504,11 +504,10 @@ struct GalliumD3D11ScreenImpl : public GalliumD3D11Screen<br>
                else<br>
                        state.cull_face = PIPE_FACE_NONE;<br>
                state.front_ccw = !!rasterizer_desc-&gt;FrontCounterClockwise;<br>
-               /* TODO: is this correct? */<br>
-               /* TODO: we are ignoring depthBiasClamp! */<br>
                state.offset_tri = state.offset_line = state.offset_point = rasterizer_desc-&gt;SlopeScaledDepthBias || rasterizer_desc-&gt;DepthBias;<br>
                state.offset_scale = rasterizer_desc-&gt;SlopeScaledDepthBias;<br>
                state.offset_units = rasterizer_desc-&gt;DepthBias;<br>
+               state.offset_clamp = rasterizer_desc-&gt;DepthBiasClamp;<br>
                state.scissor = !!rasterizer_desc-&gt;ScissorEnable;<br>
                state.multisample = !!rasterizer_desc-&gt;MultisampleEnable;<br>
                state.line_smooth = !!rasterizer_desc-&gt;AntialiasedLineEnable;<br>
--<br>
1.7.3.4<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sat, 24 Sep 2011 15:47:23 +0200<br>
From: Christoph Bumiller &lt;<a href="mailto:e0425955@student.tuwien.ac.at">e0425955@student.tuwien.ac.at</a>&gt;<br>
Subject: [Mesa-dev] [PATCH 3/4] nv50,   nvc0: support polygon offset<br>
        clamp state<br>
To: <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:1316872044-23685-3-git-send-email-e0425955@student.tuwien.ac.at">1316872044-23685-3-git-send-email-e0425955@student.tuwien.ac.at</a>&gt;<br>
<br>
---<br>
 src/gallium/drivers/nv50/nv50_3d.xml.h   |    2 +-<br>
 src/gallium/drivers/nv50/nv50_state.c    |    2 ++<br>
 src/gallium/drivers/nv50/nv50_stateobj.h |    2 +-<br>
 src/gallium/drivers/nvc0/nvc0_3d.xml.h   |    2 ++<br>
 src/gallium/drivers/nvc0/nvc0_state.c    |    2 ++<br>
 src/gallium/drivers/nvc0/nvc0_stateobj.h |    2 +-<br>
 6 files changed, 9 insertions(+), 3 deletions(-)<br>
<br>
diff --git a/src/gallium/drivers/nv50/nv50_3d.xml.h b/src/gallium/drivers/nv50/nv50_3d.xml.h<br>
index 1bde07f..0f5a77d 100644<br>
--- a/src/gallium/drivers/nv50/nv50_3d.xml.h<br>
+++ b/src/gallium/drivers/nv50/nv50_3d.xml.h<br>
@@ -1658,7 +1658,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.<br>
 #define NV50_3D_GP_RESULT_MAP_3__MASK                          0xff000000<br>
 #define NV50_3D_GP_RESULT_MAP_3__SHIFT                         24<br>
<br>
-#define NV50_3D_UNK187C                                                0x0000187c<br>
+#define NV50_3D_POLYGON_OFFSET_CLAMP                           0x0000187c<br>
<br>
 #define NVA3_3D_VERTEX_ARRAY_PER_INSTANCE_ALT(i0)             (0x00001880 + 0x4*(i0))<br>
 #define NVA3_3D_VERTEX_ARRAY_PER_INSTANCE_ALT__ESIZE           0x00000004<br>
diff --git a/src/gallium/drivers/nv50/nv50_state.c b/src/gallium/drivers/nv50/nv50_state.c<br>
index 49ea646..9382557 100644<br>
--- a/src/gallium/drivers/nv50/nv50_state.c<br>
+++ b/src/gallium/drivers/nv50/nv50_state.c<br>
@@ -308,6 +308,8 @@ nv50_rasterizer_state_create(struct pipe_context *pipe,<br>
       SB_DATA    (so, fui(cso-&gt;offset_scale));<br>
       SB_BEGIN_3D(so, POLYGON_OFFSET_UNITS, 1);<br>
       SB_DATA    (so, fui(cso-&gt;offset_units * 2.0f));<br>
+      SB_BEGIN_3D(so, POLYGON_OFFSET_CLAMP, 1);<br>
+      SB_DATA    (so, fui(cso-&gt;offset_clamp));<br>
    }<br>
<br>
    assert(so-&gt;size &lt;= (sizeof(so-&gt;state) / sizeof(so-&gt;state[0])));<br>
diff --git a/src/gallium/drivers/nv50/nv50_stateobj.h b/src/gallium/drivers/nv50/nv50_stateobj.h<br>
index d367a06..5b914d8 100644<br>
--- a/src/gallium/drivers/nv50/nv50_stateobj.h<br>
+++ b/src/gallium/drivers/nv50/nv50_stateobj.h<br>
@@ -27,7 +27,7 @@ struct nv50_blend_stateobj {<br>
 struct nv50_rasterizer_stateobj {<br>
    struct pipe_rasterizer_state pipe;<br>
    int size;<br>
-   uint32_t state[44];<br>
+   uint32_t state[45];<br>
 };<br>
<br>
 struct nv50_zsa_stateobj {<br>
diff --git a/src/gallium/drivers/nvc0/nvc0_3d.xml.h b/src/gallium/drivers/nvc0/nvc0_3d.xml.h<br>
index 6301637..9264b72 100644<br>
--- a/src/gallium/drivers/nvc0/nvc0_3d.xml.h<br>
+++ b/src/gallium/drivers/nvc0/nvc0_3d.xml.h<br>
@@ -981,6 +981,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.<br>
<br>
 #define NVC0_3D_INDEX_BATCH_COUNT                              0x000017e0<br>
<br>
+#define NVC0_3D_POLYGON_OFFSET_CLAMP                           0x0000187c<br>
+<br>
 #define NVC0_3D_VERTEX_ARRAY_PER_INSTANCE(i0)                 (0x00001880 + 0x4*(i0))<br>
 #define NVC0_3D_VERTEX_ARRAY_PER_INSTANCE__ESIZE               0x00000004<br>
 #define NVC0_3D_VERTEX_ARRAY_PER_INSTANCE__LEN                 0x00000020<br>
diff --git a/src/gallium/drivers/nvc0/nvc0_state.c b/src/gallium/drivers/nvc0/nvc0_state.c<br>
index 9f9921c..1a37d04 100644<br>
--- a/src/gallium/drivers/nvc0/nvc0_state.c<br>
+++ b/src/gallium/drivers/nvc0/nvc0_state.c<br>
@@ -266,6 +266,8 @@ nvc0_rasterizer_state_create(struct pipe_context *pipe,<br>
         SB_DATA    (so, fui(cso-&gt;offset_scale));<br>
         SB_BEGIN_3D(so, POLYGON_OFFSET_UNITS, 1);<br>
         SB_DATA    (so, fui(cso-&gt;offset_units * 2.0f));<br>
+        SB_BEGIN_3D(so, POLYGON_OFFSET_CLAMP, 1);<br>
+        SB_DATA    (so, fui(cso-&gt;offset_clamp));<br>
     }<br>
<br>
     assert(so-&gt;size &lt;= (sizeof(so-&gt;state) / sizeof(so-&gt;state[0])));<br>
diff --git a/src/gallium/drivers/nvc0/nvc0_stateobj.h b/src/gallium/drivers/nvc0/nvc0_stateobj.h<br>
index 0686c52..ecf9655 100644<br>
--- a/src/gallium/drivers/nvc0/nvc0_stateobj.h<br>
+++ b/src/gallium/drivers/nvc0/nvc0_stateobj.h<br>
@@ -25,7 +25,7 @@ struct nvc0_blend_stateobj {<br>
 struct nvc0_rasterizer_stateobj {<br>
    struct pipe_rasterizer_state pipe;<br>
    int size;<br>
-   uint32_t state[39];<br>
+   uint32_t state[40];<br>
 };<br>
<br>
 struct nvc0_zsa_stateobj {<br>
--<br>
1.7.3.4<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Sat, 24 Sep 2011 15:47:24 +0200<br>
From: Christoph Bumiller &lt;<a href="mailto:e0425955@student.tuwien.ac.at">e0425955@student.tuwien.ac.at</a>&gt;<br>
Subject: [Mesa-dev] [PATCH 4/4] r600: support polygon offset clamp<br>
        state<br>
To: <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:1316872044-23685-4-git-send-email-e0425955@student.tuwien.ac.at">1316872044-23685-4-git-send-email-e0425955@student.tuwien.ac.at</a>&gt;<br>
<br>
---<br>
 src/gallium/drivers/r600/evergreen_state.c |    2 +-<br>
 src/gallium/drivers/r600/r600_state.c      |    2 +-<br>
 2 files changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c<br>
index 3b7844f..7a6b246 100644<br>
--- a/src/gallium/drivers/r600/evergreen_state.c<br>
+++ b/src/gallium/drivers/r600/evergreen_state.c<br>
@@ -921,7 +921,7 @@ static void *evergreen_create_rs_state(struct pipe_context *ctx,<br>
                                        S_028C08_PIX_CENTER_HALF(state-&gt;gl_rasterization_rules),<br>
                                        0xFFFFFFFF, NULL, 0);<br>
        }<br>
-       r600_pipe_state_add_reg(rstate, R_028B7C_PA_SU_POLY_OFFSET_CLAMP, 0x0, 0xFFFFFFFF, NULL, 0);<br>
+       r600_pipe_state_add_reg(rstate, R_028B7C_PA_SU_POLY_OFFSET_CLAMP, fui(state-&gt;offset_clamp), 0xFFFFFFFF, NULL, 0);<br>
        r600_pipe_state_add_reg(rstate, R_02820C_PA_SC_CLIPRECT_RULE, clip_rule, 0xFFFFFFFF, NULL, 0);<br>
        return rstate;<br>
 }<br>
diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c<br>
index 2e2ce40..c6a9630 100644<br>
--- a/src/gallium/drivers/r600/r600_state.c<br>
+++ b/src/gallium/drivers/r600/r600_state.c<br>
@@ -960,7 +960,7 @@ static void *r600_create_rs_state(struct pipe_context *ctx,<br>
        r600_pipe_state_add_reg(rstate, R_028C10_PA_CL_GB_VERT_DISC_ADJ, 0x3F800000, 0xFFFFFFFF, NULL, 0);<br>
        r600_pipe_state_add_reg(rstate, R_028C14_PA_CL_GB_HORZ_CLIP_ADJ, 0x3F800000, 0xFFFFFFFF, NULL, 0);<br>
        r600_pipe_state_add_reg(rstate, R_028C18_PA_CL_GB_HORZ_DISC_ADJ, 0x3F800000, 0xFFFFFFFF, NULL, 0);<br>
-       r600_pipe_state_add_reg(rstate, R_028DFC_PA_SU_POLY_OFFSET_CLAMP, 0x00000000, 0xFFFFFFFF, NULL, 0);<br>
+       r600_pipe_state_add_reg(rstate, R_028DFC_PA_SU_POLY_OFFSET_CLAMP, fui(state-&gt;offset_clamp), 0xFFFFFFFF, NULL, 0);<br>
        r600_pipe_state_add_reg(rstate, R_02820C_PA_SC_CLIPRECT_RULE, clip_rule, 0xFFFFFFFF, NULL, 0);<br>
<br>
        return rstate;<br>
--<br>
1.7.3.4<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Sat, 24 Sep 2011 23:13:52 +0530<br>
From: Vivek Singh &lt;<a href="mailto:vivek.siwan@gmail.com">vivek.siwan@gmail.com</a>&gt;<br>
Subject: Re: [Mesa-dev] Welcome to the &quot;mesa-dev&quot; mailing list (Digest<br>
        mode)<br>
To: <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:CAJrcCc2eZrCegNUDFkqMn2zTrPKw908W6f9ePqLkU-sfxNdJ1A@mail.gmail.com">CAJrcCc2eZrCegNUDFkqMn2zTrPKw908W6f9ePqLkU-sfxNdJ1A@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hello All<br>
<br>
  I am using Mesa-7.10.2 stack.<br>
<br>
I am trying to run EGL with egl_gallium state trackers<br>
(GLES=&gt;EGL=&gt;egl_gallium=&gt;<br>
fbdev) over fbdev with following<br>
<br>
configuration<br>
<br>
<br>
./configure --prefix=/opt/mesa-arm-genoa-new --host=arm-linux<br>
--build=i686-linux --enable-gles2 --with-x=no<br>
<br>
--with-egl-platforms=fbdev  --with-egl-displays=fbdev --with-driver=no<br>
--disable-glu --disable-glw --disable-glut<br>
<br>
--disable-gl-osmesa --disable-opengl --enable-debug --enable-gles-overlay<br>
<br>
I am able to run applications which can draw directly on scanout<br>
surfaces/pbuffer (es2gears).<br>
<br>
I want to run application which uses eglCreateImageKHR (with user defined<br>
pixmap structures) to make textures<br>
and eglCreatePixmapSurface (with user defined pixmap structures) to create a<br>
Pixmap surfaces. Since Native_fbdev.c doesnot<br>
<br>
support pixmap surfaces both calls fail.<br>
      I tried to put pixmap support in native_fbdev.c with following steps<br>
1)putting a function in<br>
 fbdpy-&gt;base.destroy = fbdev_display_destroy;<br>
 fbdpy-&gt;base.get_param = fbdev_display_get_param;<br>
 fbdpy-&gt;base.get_configs = fbdev_display_get_configs;<br>
<br>
 /*Adding function to create PIXMAP surface*/<br>
 fbdpy-&gt;base.is_pixmap_supported = fbdev_display_is_pixmap_supported;<br>
 fbdpy-&gt;base.create_pixmap_surface = fbdev_display_create_pixmap_surface;<br>
<br>
2)Added support flag true in native_config<br>
 pixmap_bit=true;<br>
<br>
I am able to get finctions  eglCreateImageKHR/eglCreatePixmapSurface run<br>
successfully able to get user defined pixmap<br>
to native_fbdev by typecasting it ot EGLNativePixmaptype. But I am not able<br>
to draw any texture on EGLImage. I suspect<br>
glEGLImageTargetTexture2DOES is not working properly with EGLImage returned<br>
from eglCreateImageKHR.<br>
<br>
I dont know how I can make it visible to GLES by calling function like<br>
glEGLImageTargetTexture2DOES.<br>
<br>
I am very new to GLES and EGL . Please provide me suggestions so that I can<br>
proceed further.<br>
<br>
For convenient i am putting my code which I have inserted to native_fbdev.c<br>
<br>
static struct native_surface *<br>
fbdev_display_create_pixmap_surface(struct native_display *ndpy,<br>
                                    EGLNativePixmapType pix,<br>
                                    const struct native_config *nconf)<br>
{<br>
  printf(&quot;START %s    %s\n&quot;, __FUNCTION__, __FILE__);<br>
  fbdev_pixmap  *pixmap = (fbdev_pixmap *)pix;<br>
  /*Trying To print pixmap detail*/<br>
<br>
  printf(&quot;pixmap-&gt;height                 ::%d\n&quot;, pixmap-&gt;height);<br>
  printf(&quot;pixmap-&gt;width                  ::%d\n&quot;,  pixmap-&gt;width);<br>
  printf(&quot;pixmap-&gt;bytes_per_pixel        ::%d\n&quot;, pixmap-&gt;bytes_per_pixel);<br>
  printf(&quot;pixmap-&gt;buffer_size            ::%d\n&quot;,  pixmap-&gt;buffer_size);<br>
  printf(&quot;pixmap-&gt;red_size               ::%d\n&quot;, pixmap-&gt;red_size);<br>
  printf(&quot;pixmap-&gt;green_size             ::%d\n&quot;,  pixmap-&gt;green_size);<br>
  printf(&quot;pixmap-&gt;red_size               ::%d\n&quot;, pixmap-&gt;blue_size);<br>
  printf(&quot;pixmap-&gt;alpha_size             ::%d\n&quot;,  pixmap-&gt;alpha_size);<br>
  printf(&quot;pixmap-&gt;luminance_size         ::%d\n&quot;, pixmap-&gt;luminance_size);<br>
  printf(&quot;pixmap-&gt;flags                  ::%d\n&quot;,  pixmap-&gt;flags);<br>
  printf(&quot;pixmap-&gt;data              ::%p\n&quot;,   pixmap-&gt;data);<br>
<br>
  struct fbdev_display *fbdpy = fbdev_display(ndpy);<br>
  struct fbdev_surface *fbsurf;<br>
  fbsurf = CALLOC_STRUCT(fbdev_surface);<br>
  if (!fbsurf)<br>
     return NULL;<br>
  fbsurf-&gt;fbdpy = fbdpy;<br>
  fbsurf-&gt;width = pixmap-&gt;width;<br>
  fbsurf-&gt;height =  pixmap-&gt;height;<br>
  fbsurf-&gt;type = FBDEV_SURFACE_TYPE_PIXMAP;<br>
  fbsurf-&gt;pixmap = pix;<br>
  fbsurf-&gt;rsurf = resource_surface_create(fbdpy-&gt;base.screen,<br>
        nconf-&gt;color_format,<br>
        PIPE_BIND_RENDER_TARGET |<br>
        PIPE_BIND_DISPLAY_TARGET |  PIPE_BIND_SCANOUT );<br>
<br>
  if (!fbsurf-&gt;rsurf) {<br>
     FREE(fbsurf);<br>
     return NULL;<br>
  }<br>
<br>
  resource_surface_set_size(fbsurf-&gt;rsurf, fbsurf-&gt;width, fbsurf-&gt;height);<br>
<br>
  fbsurf-&gt;base.destroy = fbdev_surface_destroy;<br>
  fbsurf-&gt;base.present = fbdev_surface_present;<br>
  fbsurf-&gt;base.validate = fbdev_surface_validate;<br>
  fbsurf-&gt;base.wait = fbdev_surface_wait;<br>
<br>
  printf(&quot;END %s    %s\n&quot;, __FUNCTION__, __FILE__);<br>
  return &amp;fbsurf-&gt;base;<br>
<br>
}<br>
<br>
static struct native_display *<br>
fbdev_display_create(int fd, struct native_event_handler *event_handler,<br>
                    void *user_data)<br>
{<br>
  struct fbdev_display *fbdpy;<br>
<br>
  fbdpy = CALLOC_STRUCT(fbdev_display);<br>
  if (!fbdpy)<br>
     return NULL;<br>
<br>
  fbdpy-&gt;fd = fd;<br>
  fbdpy-&gt;event_handler = event_handler;<br>
  fbdpy-&gt;base.user_data = user_data;<br>
<br>
  if (!fbdev_display_init(&amp;fbdpy-&gt;base)) {<br>
     FREE(fbdpy);<br>
     return NULL;<br>
  }<br>
<br>
  fbdpy-&gt;base.destroy = fbdev_display_destroy;<br>
  fbdpy-&gt;base.get_param = fbdev_display_get_param;<br>
  fbdpy-&gt;base.get_configs = fbdev_display_get_configs;<br>
<br>
  /*Vivek:: Adding function to create PIXMAP surface*/<br>
   fbdpy-&gt;base.is_pixmap_supported = fbdev_display_is_pixmap_supported;<br>
   fbdpy-&gt;base.create_pixmap_surface = fbdev_display_create_pixmap_surface;<br>
<br>
   fbdpy-&gt;base.modeset = &amp;fbdev_display_modeset;<br>
<br>
  return &amp;fbdpy-&gt;base;<br>
}<br>
<br>
static boolean<br>
fbdev_display_is_pixmap_supported(struct native_display *ndpy,<br>
                                  EGLNativePixmapType pix,<br>
                                  const struct native_config *nconf)<br>
{<br>
  printf(&quot;START   %s     %s\n&quot;, __FUNCTION__, __FILE__);<br>
  struct fbdev_display *fdpy = fbdev_display(ndpy);<br>
  enum pipe_format fmt;<br>
  uint depth;<br>
  depth =  32; //hard coded for 4bpp<br>
  switch (depth) {<br>
  case 32:<br>
     fmt = PIPE_FORMAT_B8G8R8A8_UNORM;<br>
     break;<br>
  case 24:<br>
     fmt = PIPE_FORMAT_B8G8R8X8_UNORM;<br>
     break;<br>
  case 16:<br>
     fmt = PIPE_FORMAT_B5G6R5_UNORM;<br>
     break;<br>
  default:<br>
     fmt = PIPE_FORMAT_NONE;<br>
     break;<br>
  }<br>
<br>
  return (fmt == nconf-&gt;color_format);<br>
}<br>
<br>
static boolean<br>
fbdev_surface_flush_frontbuffer(struct native_surface *nsurf)<br>
{<br>
 printf(&quot;%s    %s\n&quot;, __FUNCTION__, __FILE__);<br>
 struct fbdev_surface *fbsurf = fbdev_surface(nsurf);<br>
<br>
  if (!fbsurf-&gt;is_current)<br>
     return TRUE;<br>
<br>
  if(fbsurf-&gt;type == FBDEV_SURFACE_TYPE_PIXMAP)   //Vivek<br>
       {<br>
<br>
          return resource_surface_present(fbsurf-&gt;rsurf,<br>
NATIVE_ATTACHMENT_FRONT_LEFT, fbsurf-&gt;pixmap);<br>
       }<br>
  else<br>
       {<br>
          return resource_surface_present(fbsurf-&gt;rsurf,<br>
NATIVE_ATTACHMENT_FRONT_LEFT, NULL);<br>
       }<br>
<br>
}<br>
<br>
<br>
Regards<br>
Vivek<br>
<br>
On Sat, Sep 24, 2011 at 11:08 PM, &lt;<a href="mailto:mesa-dev-request@lists.freedesktop.org">mesa-dev-request@lists.freedesktop.org</a>&gt;wrote:<br>
<br>
&gt; Welcome to the <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a> mailing list!<br>
&gt;<br>
&gt; To post to this list, send your email to:<br>
&gt;<br>
&gt;  <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
&gt;<br>
&gt; General information about the mailing list is at:<br>
&gt;<br>
&gt;  <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
&gt;<br>
&gt; If you ever want to unsubscribe or change your options (eg, switch to<br>
&gt; or from digest mode, change your password, etc.), visit your<br>
&gt; subscription page at:<br>
&gt;<br>
&gt;<br>
&gt; <a href="http://lists.freedesktop.org/mailman/options/mesa-dev/vivek.siwan%40gmail.com" target="_blank">http://lists.freedesktop.org/mailman/options/mesa-dev/vivek.siwan%40gmail.com</a><br>
&gt;<br>
&gt;<br>
&gt; You can also make such adjustments via email by sending a message to:<br>
&gt;<br>
&gt;  <a href="mailto:mesa-dev-request@lists.freedesktop.org">mesa-dev-request@lists.freedesktop.org</a><br>
&gt;<br>
&gt; with the word `help&#39; in the subject or body (don&#39;t include the<br>
&gt; quotes), and you will get back a message with instructions.<br>
&gt;<br>
&gt; You must know your password to change your options (including changing<br>
&gt; the password, itself) or to unsubscribe.  It is:<br>
&gt;<br>
&gt;  himmatwala<br>
&gt;<br>
&gt; Normally, Mailman will remind you of your <a href="http://lists.freedesktop.org" target="_blank">lists.freedesktop.org</a><br>
&gt; mailing list passwords once every month, although you can disable this<br>
&gt; if you prefer.  This reminder will also include instructions on how to<br>
&gt; unsubscribe or change your account options.  There is also a button on<br>
&gt; your options page that will email your current password to you.<br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.freedesktop.org/archives/mesa-dev/attachments/20110924/e3646c39/attachment.html" target="_blank">http://lists.freedesktop.org/archives/mesa-dev/attachments/20110924/e3646c39/attachment.html</a>&gt;<br>

<br>
------------------------------<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
<br>
<br>
End of mesa-dev Digest, Vol 18, Issue 186<br>
*****************************************<br>
</blockquote></div><br>