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);
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)
}
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)
{
}
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;
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:
}
}
-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:
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) {
#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);