nv2a: Add B8, G8B8 surface format placeholders

This commit is contained in:
Matt Borgerson 2020-10-25 23:59:44 -07:00 committed by mborgerson
parent 0433c5e6bc
commit 6f777e73e6
1 changed files with 6 additions and 0 deletions

View File

@ -294,6 +294,12 @@ static const SurfaceColorFormatInfo kelvin_surface_color_format_map[] = {
{4, GL_RGBA8, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV},
[NV097_SET_SURFACE_FORMAT_COLOR_LE_A8R8G8B8] =
{4, GL_RGBA8, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV},
// FIXME: Map channel color
[NV097_SET_SURFACE_FORMAT_COLOR_LE_B8] =
{1, GL_R8, GL_RED, GL_UNSIGNED_BYTE},
[NV097_SET_SURFACE_FORMAT_COLOR_LE_G8B8] =
{2, GL_RG8, GL_RG, GL_UNSIGNED_SHORT},
};
// static void pgraph_set_context_user(NV2AState *d, uint32_t val);