projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
llvmpipe: wait for queries being finished when asked for it or before deletion
[mesa.git]
/
src
/
gallium
/
drivers
/
svga
/
svga_pipe_constants.c
diff --git
a/src/gallium/drivers/svga/svga_pipe_constants.c
b/src/gallium/drivers/svga/svga_pipe_constants.c
index 10e7a121892af8aa32acfe4740dac0d623beaefb..2fa2142d07d7beaa15528c2e2ce96eec226c94a1 100644
(file)
--- a/
src/gallium/drivers/svga/svga_pipe_constants.c
+++ b/
src/gallium/drivers/svga/svga_pipe_constants.c
@@
-23,16
+23,12
@@
*
**********************************************************/
*
**********************************************************/
-#include "
pipe/p
_inlines.h"
+#include "
util/u
_inlines.h"
#include "pipe/p_defines.h"
#include "util/u_math.h"
#include "pipe/p_defines.h"
#include "util/u_math.h"
-#include "util/u_memory.h"
#include "tgsi/tgsi_parse.h"
#include "svga_context.h"
#include "tgsi/tgsi_parse.h"
#include "svga_context.h"
-#include "svga_state.h"
-#include "svga_hw_reg.h"
-#include "svga_cmd.h"
/***********************************************************************
* Constant buffers
/***********************************************************************
* Constant buffers
@@
-49,15
+45,15
@@
struct svga_constbuf
static void svga_set_constant_buffer(struct pipe_context *pipe,
uint shader, uint index,
static void svga_set_constant_buffer(struct pipe_context *pipe,
uint shader, uint index,
-
const struct pipe_constant_buffer
*buf)
+
struct pipe_resource
*buf)
{
struct svga_context *svga = svga_context(pipe);
assert(shader < PIPE_SHADER_TYPES);
assert(index == 0);
{
struct svga_context *svga = svga_context(pipe);
assert(shader < PIPE_SHADER_TYPES);
assert(index == 0);
- pipe_
buffer
_reference( &svga->curr.cb[shader],
- buf
->buffer
);
+ pipe_
resource
_reference( &svga->curr.cb[shader],
+ buf );
if (shader == PIPE_SHADER_FRAGMENT)
svga->dirty |= SVGA_NEW_FS_CONST_BUFFER;
if (shader == PIPE_SHADER_FRAGMENT)
svga->dirty |= SVGA_NEW_FS_CONST_BUFFER;