mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
nv50: support a couple more common VBO formats
This commit is contained in:
parent
f700d6be63
commit
163d9aa1fe
1 changed files with 6 additions and 0 deletions
|
|
@ -82,9 +82,15 @@ nv50_vbo_validate(struct nv50_context *nv50)
|
|||
&nv50->vtxbuf[ve->vertex_buffer_index];
|
||||
|
||||
switch (ve->src_format) {
|
||||
case PIPE_FORMAT_R32G32B32A32_FLOAT:
|
||||
so_data(vtxfmt, 0x7e080000 | i);
|
||||
break;
|
||||
case PIPE_FORMAT_R32G32B32_FLOAT:
|
||||
so_data(vtxfmt, 0x7e100000 | i);
|
||||
break;
|
||||
case PIPE_FORMAT_R8G8B8A8_UNORM:
|
||||
so_data(vtxfmt, 0x24500000 | i);
|
||||
break;
|
||||
default:
|
||||
{
|
||||
char fmt[128];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue