search for: mesa_format_z24_s8

Displaying 6 results from an estimated 6 matches for "mesa_format_z24_s8".

2012 Apr 30
5
[PATCH] nouveau/vieux: only advertise supported texture formats
...ureFormatSupported)); + ctx->TextureFormatSupported[MESA_FORMAT_XRGB8888] = true; + ctx->TextureFormatSupported[MESA_FORMAT_ARGB8888] = true; + ctx->TextureFormatSupported[MESA_FORMAT_RGB565] = true; + ctx->TextureFormatSupported[MESA_FORMAT_Z16] = true; + ctx->TextureFormatSupported[MESA_FORMAT_Z24_S8] = true; + /* Allocate a hardware channel. */ ret = nouveau_object_new(&context_dev(ctx)->object, 0xbeef0000, NOUVEAU_FIFO_CHANNEL_CLASS, -- 1.7.10
2014 Jan 10
2
[PATCH] nouveau: add framebuffer validation callback
....c +++ b/src/mesa/drivers/dri/nouveau/nv10_context.c @@ -492,11 +492,27 @@ fail: return NULL; } +static bool +nv10_is_rt_format_supported(gl_format format) +{ + switch (format) { + case MESA_FORMAT_XRGB8888: + case MESA_FORMAT_ARGB8888: + case MESA_FORMAT_RGB565: + case MESA_FORMAT_Z16: + case MESA_FORMAT_Z24_S8: + return true; + default: + return false; + } +} + const struct nouveau_driver nv10_driver = { .context_create = nv10_context_create, .context_destroy = nv10_context_destroy, .surface_copy = nv04_surface_copy, .surface_fill = nv04_surface_fill, + .is_rt_format_supported = nv10_is_...
2014 Jan 14
0
[PATCH] nouveau: add framebuffer validation callback
...MESA_FORMAT_RGB565: > + return true; > + default: > + return false; > + } > +} > + You're missing the depth/stencil formats here. nv04 is kind of annoying because the depth and color buffers have to be of the same bpp, so if the color buffer is 32bpp we should only accept MESA_FORMAT_Z24_S8, if it's 16bpp MESA_FORMAT_Z16. You probably want to implement that logic in the top-level ValidateFramebuffer() hook instead of using a driver call-back mechanism, because (aside from the bpp limitation) we're going to expose the same set of formats on all generations. Thanks. > con...
2014 Jan 15
1
[PATCH v2] nouveau: add framebuffer validation callback
...rivers/dri/nouveau/nouveau_fbo.c @@ -268,6 +268,57 @@ nouveau_finish_render_texture(struct gl_context *ctx, texture_dirty(rb->TexImage->TexObject); } +static int +validate_format_bpp(gl_format format) +{ + switch (format) { + case MESA_FORMAT_XRGB8888: + case MESA_FORMAT_ARGB8888: + case MESA_FORMAT_Z24_S8: + return 32; + case MESA_FORMAT_RGB565: + case MESA_FORMAT_Z16: + return 16; + default: + return 0; + } +} + +static void +nouveau_check_framebuffer_complete(struct gl_context *ctx, + struct gl_framebuffer *fb) +{ + const struct nouveau_driver *drv = context_drv(ctx); + struct gl_renderbu...
2010 Apr 22
1
nv20tcl and renouveau questions
...ing for bit 5. Looking at dri/mesa : case MESA_FORMAT_XRGB8888: return 0x05; case MESA_FORMAT_ARGB8888: return 0x08; case MESA_FORMAT_RGB565: return 0x03; case MESA_FORMAT_Z16: return 0x10; case MESA_FORMAT_Z24_S8: return 0x20; Does that mean that color only goes from bit 0 to 3, and zeta is bit 4-5. Unlike nv30 where color goes from 0 to 4, and has zeta on 5-6 ? On nv20, 0x10 and 0x20 is valid, but not 0x40. And it seems nv20 dri also cause data errors because it does not always set zeta...
2014 Jan 10
8
[Bug 73459] New: nv10 get_rt_format: Assertion `0' failed.
...a/drivers/dri/nouveau/nv10_state_fb.c b/src/mesa/drivers/dri/nouveau/nv10_state_fb.c index 87ae1d6..91b4ee7 100644 --- a/src/mesa/drivers/dri/nouveau/nv10_state_fb.c +++ b/src/mesa/drivers/dri/nouveau/nv10_state_fb.c @@ -47,6 +47,7 @@ get_rt_format(gl_format format) case MESA_FORMAT_Z24_S8: return NV10_3D_RT_FORMAT_DEPTH_Z24S8; default: + printf("Unsupported format %d\n", format); assert(0); } } ---------------------------------------------------- The output after running wine with the p...