summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-05-29 15:39:51 +0200
committerMarek Olšák <maraeo@gmail.com>2010-05-29 15:41:22 +0200
commit7d9396d7cfd4d9472e05f83bf20d7278d37efb4d (patch)
tree23133754ca99dc7085c828f152d13f6239ad2352 /src/gallium
parent1d57b6ebd186217a5c480245a36d169d357b8e67 (diff)
r600g: fix gallium function parameters
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r600/r600_context.h8
-rw-r--r--src/gallium/drivers/r600/r600_draw.c10
-rw-r--r--src/gallium/drivers/r600/r600_screen.c7
-rw-r--r--src/gallium/winsys/r600/drm/r600_drm.c3
4 files changed, 14 insertions, 14 deletions
diff --git a/src/gallium/drivers/r600/r600_context.h b/src/gallium/drivers/r600/r600_context.h
index a5149038e22..cfaca6d23f0 100644
--- a/src/gallium/drivers/r600/r600_context.h
+++ b/src/gallium/drivers/r600/r600_context.h
@@ -82,12 +82,12 @@ struct r600_context {
void r600_draw_arrays(struct pipe_context *ctx, unsigned mode,
unsigned start, unsigned count);
void r600_draw_elements(struct pipe_context *ctx,
- struct pipe_buffer *index_buffer,
- unsigned index_size, unsigned index_bias, unsigned mode,
+ struct pipe_resource *index_buffer,
+ unsigned index_size, int index_bias, unsigned mode,
unsigned start, unsigned count);
void r600_draw_range_elements(struct pipe_context *ctx,
- struct pipe_buffer *index_buffer,
- unsigned index_size, unsigned index_bias, unsigned min_index,
+ struct pipe_resource *index_buffer,
+ unsigned index_size, int index_bias, unsigned min_index,
unsigned max_index, unsigned mode,
unsigned start, unsigned count);
diff --git a/src/gallium/drivers/r600/r600_draw.c b/src/gallium/drivers/r600/r600_draw.c
index 26cc94f857b..8b6a6d96aa8 100644
--- a/src/gallium/drivers/r600/r600_draw.c
+++ b/src/gallium/drivers/r600/r600_draw.c
@@ -43,7 +43,7 @@ struct r600_draw {
unsigned start;
unsigned count;
unsigned index_size;
- struct pipe_buffer *index_buffer;
+ struct pipe_resource *index_buffer;
};
static int r600_draw_common(struct r600_draw *draw)
@@ -167,8 +167,8 @@ static int r600_draw_common(struct r600_draw *draw)
}
void r600_draw_range_elements(struct pipe_context *ctx,
- struct pipe_buffer *index_buffer,
- unsigned index_size, unsigned index_bias, unsigned min_index,
+ struct pipe_resource *index_buffer,
+ unsigned index_size, int index_bias, unsigned min_index,
unsigned max_index, unsigned mode,
unsigned start, unsigned count)
{
@@ -186,8 +186,8 @@ printf("index_size %d min %d max %d start %d count %d\n", index_size, min_inde
}
void r600_draw_elements(struct pipe_context *ctx,
- struct pipe_buffer *index_buffer,
- unsigned index_size, unsigned index_bias, unsigned mode,
+ struct pipe_resource *index_buffer,
+ unsigned index_size, int index_bias, unsigned mode,
unsigned start, unsigned count)
{
struct r600_draw draw;
diff --git a/src/gallium/drivers/r600/r600_screen.c b/src/gallium/drivers/r600/r600_screen.c
index 08277f9ebc3..7d39184d901 100644
--- a/src/gallium/drivers/r600/r600_screen.c
+++ b/src/gallium/drivers/r600/r600_screen.c
@@ -43,7 +43,7 @@ static const char* r600_get_name(struct pipe_screen* pscreen)
return "R600/R700 (HD2XXX,HD3XXX,HD4XXX)";
}
-static int r600_get_param(struct pipe_screen* pscreen, int param)
+static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
{
switch (param) {
case PIPE_CAP_MAX_TEXTURE_IMAGE_UNITS:
@@ -103,7 +103,7 @@ static int r600_get_param(struct pipe_screen* pscreen, int param)
}
}
-static float r600_get_paramf(struct pipe_screen* pscreen, int param)
+static float r600_get_paramf(struct pipe_screen* pscreen, enum pipe_cap param)
{
switch (param) {
case PIPE_CAP_MAX_LINE_WIDTH:
@@ -124,7 +124,8 @@ static float r600_get_paramf(struct pipe_screen* pscreen, int param)
static boolean r600_is_format_supported(struct pipe_screen* screen,
enum pipe_format format,
enum pipe_texture_target target,
- unsigned usage,
+ unsigned sample_count,
+ unsigned bindings,
unsigned geom_flags)
{
if (target >= PIPE_MAX_TEXTURE_TYPES) {
diff --git a/src/gallium/winsys/r600/drm/r600_drm.c b/src/gallium/winsys/r600/drm/r600_drm.c
index b69af5e1113..b772ff0dd9f 100644
--- a/src/gallium/winsys/r600/drm/r600_drm.c
+++ b/src/gallium/winsys/r600/drm/r600_drm.c
@@ -34,8 +34,7 @@
#include "r600_screen.h"
#include "r600_texture.h"
-static struct pipe_screen *r600_drm_create_screen(struct drm_api* api, int drmfd,
- struct drm_create_screen_arg *arg)
+static struct pipe_screen *r600_drm_create_screen(struct drm_api* api, int drmfd)
{
struct radeon *rw = radeon_new(drmfd, 0);