Displaying 5 results from an estimated 5 matches for "mesa_format_xrgb8888".
Did you mean:
mesa_format_argb8888
2012 Apr 30
5
[PATCH] nouveau/vieux: only advertise supported texture formats
...ctx, struct nouveau_screen *screen,
nouveau_span_functions_init(ctx);
_mesa_allow_light_in_model(ctx, GL_FALSE);
+ /* only 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 =...
2014 Jan 10
2
[PATCH] nouveau: add framebuffer validation callback
...vers/dri/nouveau/nv04_context.c
index c198c03..665cadd 100644
--- 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_...
2014 Jan 14
0
[PATCH] nouveau: add framebuffer validation callback
...100644
> --- 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;
> + }
> +}
> +
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
t...
2014 Jan 15
1
[PATCH v2] nouveau: add framebuffer validation callback
...rc/mesa/drivers/dri/nouveau/nouveau_fbo.c
+++ b/src/mesa/drivers/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 nouv...
2010 Apr 22
1
nv20tcl and renouveau questions
...quot;enum"
enum_name="nv40_rendertarget_type"/>
<bitfield name="COLOR" high="4" low="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 c...