[Mesa-dev] [PATCH] intel: Enable creating FBO with luminance texture as render target

Eric Anholt eric at anholt.net
Thu Mar 15 15:11:40 PDT 2012


On Fri,  9 Mar 2012 14:47:32 -0800, Anuj Phogat <anuj.phogat at gmail.com> wrote:
> Currently intel driver doesn't allow to create a FBO with luminace texture
> as render target. Piglit test getteximage-luminance skips a sub test due to
> this restriction. Test passes as expected after applying this patch.
> 
> Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
> ---
>  src/mesa/drivers/dri/i965/brw_wm_surface_state.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
> index a3de2e3..7520219 100644
> --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
> +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
> @@ -541,6 +541,7 @@ brw_init_surface_formats(struct brw_context *brw)
>      */
>     brw->format_supported_as_render_target[MESA_FORMAT_S8_Z24] = true;
>     brw->format_supported_as_render_target[MESA_FORMAT_X8_Z24] = true;
> +   brw->format_supported_as_render_target[MESA_FORMAT_L8] = true;
>     brw->format_supported_as_render_target[MESA_FORMAT_S8] = true;
>     brw->format_supported_as_render_target[MESA_FORMAT_Z16] = true;
>     brw->format_supported_as_render_target[MESA_FORMAT_Z32_FLOAT] = true;

I would not have expected this to work.  Did you do a full piglit run?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120315/1faa1c80/attachment.pgp>


More information about the mesa-dev mailing list