search for: mesa_format_rgb565

Displaying 5 results from an estimated 5 matches for "mesa_format_rgb565".

2012 Apr 30
5
[PATCH] nouveau/vieux: only advertise supported texture formats
...ly advertise supported texture formats */ + memset(&ctx->TextureFormatSupported, 0, + sizeof(ctx->TextureFormatSupported)); + 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
...644 --- a/src/mesa/drivers/dri/nouveau/nv04_context.c +++ b/src/mesa/drivers/dri/nouveau/nv04_context.c @@ -199,11 +199,25 @@ fail: return NULL; } +static bool +nv04_is_rt_format_supported(gl_format format) +{ + switch (format) { + case MESA_FORMAT_XRGB8888: + case MESA_FORMAT_ARGB8888: + case MESA_FORMAT_RGB565: + return true; + default: + return false; + } +} + const struct nouveau_driver nv04_driver = { .context_create = nv04_context_create, .context_destroy = nv04_context_destroy, .surface_copy = nv04_surface_copy, .surface_fill = nv04_surface_fill, + .is_rt_format_supported = nv04_is_rt_for...
2014 Jan 14
0
[PATCH] nouveau: add framebuffer validation callback
...++ b/src/mesa/drivers/dri/nouveau/nv04_context.c > @@ -199,11 +199,25 @@ fail: > return NULL; > } > > +static bool > +nv04_is_rt_format_supported(gl_format format) > +{ > + switch (format) { > + case MESA_FORMAT_XRGB8888: > + case MESA_FORMAT_ARGB8888: > + case 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,...
2014 Jan 15
1
[PATCH v2] nouveau: add framebuffer validation callback
...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_renderbuffer_attachment *color = + &fb->A...
2010 Apr 22
1
nv20tcl and renouveau questions
...ow="0" type="enum" enum_name="nv40_rendertarget_color_format"/> </reg32> Nothing 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,...