|
|
|
@ -28,7 +28,7 @@ |
|
|
|
|
#include "util/u_format.h" |
|
|
|
|
/* fill the format table */ |
|
|
|
|
static struct vrend_format_table base_rgba_formats[] = |
|
|
|
|
{ |
|
|
|
|
{ |
|
|
|
|
{ VIRGL_FORMAT_B8G8R8X8_UNORM, GL_RGBA8, GL_BGRA, GL_UNSIGNED_BYTE, 0 }, |
|
|
|
|
{ VIRGL_FORMAT_B8G8R8A8_UNORM, GL_RGBA8, GL_BGRA, GL_UNSIGNED_BYTE, 0 }, |
|
|
|
|
|
|
|
|
@ -51,10 +51,10 @@ static struct vrend_format_table base_rgba_formats[] = |
|
|
|
|
{ VIRGL_FORMAT_R16G16B16X16_UNORM, GL_RGBA16, GL_RGBA, GL_UNSIGNED_SHORT }, |
|
|
|
|
|
|
|
|
|
{ VIRGL_FORMAT_R16G16B16A16_UNORM, GL_RGBA16, GL_RGBA, GL_UNSIGNED_SHORT }, |
|
|
|
|
}; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
static struct vrend_format_table base_depth_formats[] = |
|
|
|
|
{ |
|
|
|
|
{ |
|
|
|
|
{ VIRGL_FORMAT_Z16_UNORM, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT, GL_UNSIGNED_SHORT, 0 }, |
|
|
|
|
{ VIRGL_FORMAT_Z32_UNORM, GL_DEPTH_COMPONENT32, GL_DEPTH_COMPONENT, GL_UNSIGNED_INT, 0 }, |
|
|
|
|
{ VIRGL_FORMAT_S8_UINT_Z24_UNORM, GL_DEPTH24_STENCIL8_EXT, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, 0 }, |
|
|
|
@ -62,7 +62,7 @@ static struct vrend_format_table base_depth_formats[] = |
|
|
|
|
{ VIRGL_FORMAT_Z32_FLOAT, GL_DEPTH_COMPONENT32F, GL_DEPTH_COMPONENT, GL_FLOAT }, |
|
|
|
|
/* this is probably a separate format */ |
|
|
|
|
{ VIRGL_FORMAT_Z32_FLOAT_S8X24_UINT, GL_DEPTH32F_STENCIL8, GL_DEPTH_STENCIL, GL_FLOAT_32_UNSIGNED_INT_24_8_REV}, |
|
|
|
|
}; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
static struct vrend_format_table base_la_formats[] = { |
|
|
|
|
{ VIRGL_FORMAT_A8_UNORM, GL_ALPHA8, GL_ALPHA, GL_UNSIGNED_BYTE }, |
|
|
|
|