Commit 9933b85e authored by Michel Dänzer's avatar Michel Dänzer Committed by Michel Dänzer
Browse files

radeonsi: Expose pure integer vertex formats



Fixes 20 piglit tests with MESA_GL_VERSION_OVERRIDE=3.0.
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
parent ad4dc772
......@@ -1630,7 +1630,12 @@ static uint32_t si_translate_vertexformat(struct pipe_screen *screen,
}
break;
case 32:
if (type != UTIL_FORMAT_TYPE_FLOAT)
/* From the Southern Islands ISA documentation about MTBUF:
* 'Memory reads of data in memory that is 32 or 64 bits do not
* undergo any format conversion.'
*/
if (type != UTIL_FORMAT_TYPE_FLOAT &&
!desc->channel[first_non_void].pure_integer)
return V_008F0C_BUF_DATA_FORMAT_INVALID;
switch (desc->nr_channels) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment