<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 6, 2015 at 5:06 PM, Kenneth Graunke <span dir="ltr"><<a href="mailto:kenneth@whitecape.org" target="_blank">kenneth@whitecape.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This allows those formats to work with the meta PBO upload path.<br>
<br>
Signed-off-by: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>><br>
---<br>
 src/mesa/drivers/dri/i965/brw_surface_formats.c | 8 ++++++++<br>
 1 file changed, 8 insertions(+)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/brw_surface_formats.c b/src/mesa/drivers/dri/i965/brw_surface_formats.c<br>
index 7261c01..7524ad9 100644<br>
--- a/src/mesa/drivers/dri/i965/brw_surface_formats.c<br>
+++ b/src/mesa/drivers/dri/i965/brw_surface_formats.c<br>
@@ -582,6 +582,14 @@ brw_init_surface_formats(struct brw_context *brw)<br>
       case BRW_SURFACEFORMAT_L16_FLOAT:<br>
         render = BRW_SURFACEFORMAT_R16_FLOAT;<br>
         break;<br>
+      case BRW_SURFACEFORMAT_I8_UNORM:<br>
+      case BRW_SURFACEFORMAT_L8_UNORM:<br>
+         render = BRW_SURFACEFORMAT_R8_UNORM;<br>
+         break;<br>
+      case BRW_SURFACEFORMAT_I16_UNORM:<br>
+      case BRW_SURFACEFORMAT_L16_UNORM:<br>
+         render = BRW_SURFACEFORMAT_R16_UNORM;<br>
+         break;<br>
       case BRW_SURFACEFORMAT_B8G8R8X8_UNORM:<br>
         /* XRGB is handled as ARGB because the chips in this family<br>
          * cannot render to XRGB targets.  This means that we have to<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.3.5<br>
<br></font></span></blockquote><div>Reviewed-by: Anuj Phogat <<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
_______________________________________________<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>
</font></span></blockquote></div><br></div></div>