mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-08 08:08:25 +02:00
svga: comments and debug code
This commit is contained in:
parent
f7d84c177f
commit
396da5df0e
1 changed files with 10 additions and 0 deletions
|
|
@ -35,6 +35,11 @@
|
|||
/***********************************************************************
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Given a gallium vertex element format, return the corresponding SVGA3D
|
||||
* format. Return SVGA3D_DECLTYPE_MAX for unsupported gallium formats.
|
||||
*/
|
||||
static INLINE SVGA3dDeclType
|
||||
svga_translate_vertex_format(enum pipe_format format)
|
||||
{
|
||||
|
|
@ -80,6 +85,7 @@ static int update_need_swvfetch( struct svga_context *svga,
|
|||
for (i = 0; i < svga->curr.velems->count; i++) {
|
||||
svga->state.sw.ve_format[i] = svga_translate_vertex_format(svga->curr.velems->velem[i].src_format);
|
||||
if (svga->state.sw.ve_format[i] == SVGA3D_DECLTYPE_MAX) {
|
||||
/* Unsupported format - use software fetch */
|
||||
need_swvfetch = TRUE;
|
||||
break;
|
||||
}
|
||||
|
|
@ -145,6 +151,10 @@ static int update_need_pipeline( struct svga_context *svga,
|
|||
svga->dirty |= SVGA_NEW_NEED_PIPELINE;
|
||||
}
|
||||
|
||||
/* DEBUG */
|
||||
if (0 && svga->state.sw.need_pipeline)
|
||||
debug_printf("sw.need_pipeline = %d\n", svga->state.sw.need_pipeline);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue