<div class="gmail_quote">On Fri, Mar 9, 2012 at 2:47 PM, Anuj Phogat <span dir="ltr"><<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Currently intel driver doesn't allow to create a FBO with luminace texture<br>
as render target. Piglit test getteximage-luminance skips a sub test due to<br>
this restriction. Test passes as expected after applying this patch.<br>
<br>
Signed-off-by: Anuj Phogat <<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>><br>
---<br>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 1 +<br>
1 files changed, 1 insertions(+), 0 deletions(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c<br>
index a3de2e3..7520219 100644<br>
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c<br>
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c<br>
@@ -541,6 +541,7 @@ brw_init_surface_formats(struct brw_context *brw)<br>
*/<br>
brw->format_supported_as_render_target[MESA_FORMAT_S8_Z24] = true;<br>
brw->format_supported_as_render_target[MESA_FORMAT_X8_Z24] = true;<br>
+ brw->format_supported_as_render_target[MESA_FORMAT_L8] = true;<br>
brw->format_supported_as_render_target[MESA_FORMAT_S8] = true;<br>
brw->format_supported_as_render_target[MESA_FORMAT_Z16] = true;<br>
brw->format_supported_as_render_target[MESA_FORMAT_Z32_FLOAT] = true;<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.7.6<br>
<br>
</font></span></blockquote></div>Planning to push this today evening. Let me know if you have any comments.