r600: Add R4G4B4A4 and A1B5G5R5 to supported vertex formats
Below tests would fail with an error message "Vertex format (R4G4B4A4|R5G5B5A1) not supported." Add the formate to the translation routine to enable these formats. Fixes: dEQP-GLES3.functional.texture.specification.teximage2d_pbo.rgba4_2d dEQP-GLES3.functional.texture.specification.teximage2d_pbo.rgba4_cube dEQP-GLES3.functional.texture.specification.teximage2d_pbo.rgb5_a1_2d dEQP-GLES3.functional.texture.specification.teximage2d_pbo.rgb5_a1_cube dEQP-GLES3.functional.texture.specification.texsubimage2d_pbo.rgba4_2d dEQP-GLES3.functional.texture.specification.texsubimage2d_pbo.rgba4_cube dEQP-GLES3.functional.texture.specification.texsubimage2d_pbo.rgb5_a1_2d dEQP-GLES3.functional.texture.specification.texsubimage2d_pbo.rgb5_a1_cube dEQP-GLES3.functional.texture.specification.teximage3d_pbo.rgba4_2d_array dEQP-GLES3.functional.texture.specification.teximage3d_pbo.rgba4_3d dEQP-GLES3.functional.texture.specification.teximage3d_pbo.rgb5_a1_2d_array dEQP-GLES3.functional.texture.specification.teximage3d_pbo.rgb5_a1_3d dEQP-GLES3.functional.texture.specification.texsubimage3d_pbo.rgba4_2d_array dEQP-GLES3.functional.texture.specification.texsubimage3d_pbo.rgba4_3d dEQP-GLES3.functional.texture.specification.texsubimage3d_pbo.rgb5_a1_2d_array dEQP-GLES3.functional.texture.specification.texsubimage3d_pbo.rgb5_a1_3d Signed-off-by: Gert Wollny <gw.fossdev@gmail.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
@@ -2476,6 +2476,11 @@ void r600_vertex_data_type(enum pipe_format pformat,
|
||||
return;
|
||||
}
|
||||
|
||||
if (pformat == PIPE_FORMAT_A1B5G5R5_UNORM) {
|
||||
*format = FMT_5_5_5_1;
|
||||
return;
|
||||
}
|
||||
|
||||
desc = util_format_description(pformat);
|
||||
if (desc->layout != UTIL_FORMAT_LAYOUT_PLAIN) {
|
||||
goto out_unknown;
|
||||
@@ -2533,6 +2538,16 @@ void r600_vertex_data_type(enum pipe_format pformat,
|
||||
/* Signed ints */
|
||||
case UTIL_FORMAT_TYPE_SIGNED:
|
||||
switch (desc->channel[i].size) {
|
||||
case 4:
|
||||
switch (desc->nr_channels) {
|
||||
case 2:
|
||||
*format = FMT_4_4;
|
||||
break;
|
||||
case 4:
|
||||
*format = FMT_4_4_4_4;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
switch (desc->nr_channels) {
|
||||
case 1:
|
||||
|
Reference in New Issue
Block a user