mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 11:20:11 +01:00
svga: add svga_have_gb_objects/dma() functions
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Cc: "10.1" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
823fbfdca7
commit
31dfefc47f
1 changed files with 14 additions and 0 deletions
|
|
@ -36,8 +36,10 @@
|
||||||
|
|
||||||
#include "tgsi/tgsi_scan.h"
|
#include "tgsi/tgsi_scan.h"
|
||||||
|
|
||||||
|
#include "svga_screen.h"
|
||||||
#include "svga_state.h"
|
#include "svga_state.h"
|
||||||
#include "svga_tgsi.h"
|
#include "svga_tgsi.h"
|
||||||
|
#include "svga_winsys.h"
|
||||||
#include "svga_hw_reg.h"
|
#include "svga_hw_reg.h"
|
||||||
#include "svga3d_shaderdefs.h"
|
#include "svga3d_shaderdefs.h"
|
||||||
|
|
||||||
|
|
@ -481,5 +483,17 @@ svga_context( struct pipe_context *pipe )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static INLINE boolean
|
||||||
|
svga_have_gb_objects(const struct svga_context *svga)
|
||||||
|
{
|
||||||
|
return svga_screen(svga->pipe.screen)->sws->have_gb_objects;
|
||||||
|
}
|
||||||
|
|
||||||
|
static INLINE boolean
|
||||||
|
svga_have_gb_dma(const struct svga_context *svga)
|
||||||
|
{
|
||||||
|
return svga_screen(svga->pipe.screen)->sws->have_gb_dma;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue