[Mesa-dev] [PATCH] intel: Enable creating FBO with luminance texture as render target
Anuj Phogat
anuj.phogat at gmail.com
Thu Mar 15 11:30:47 PDT 2012
On Fri, Mar 9, 2012 at 2:47 PM, 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;
> --
> 1.7.7.6
>
> Planning to push this today evening. Let me know if you have any comments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120315/424a898d/attachment.htm>
More information about the mesa-dev
mailing list