Commit b33fd3ce authored by Michal Krol's avatar Michal Krol

gallium: Usage parameter of get_transfer/transfer_inline_write is a bitfield.

parent 9c1162d9
......@@ -75,7 +75,7 @@ void u_transfer_unmap_vtbl( struct pipe_context *pipe,
void u_transfer_inline_write_vtbl( struct pipe_context *pipe,
struct pipe_resource *resource,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box,
const void *data,
unsigned stride,
......
......@@ -10,7 +10,7 @@
void u_default_transfer_inline_write( struct pipe_context *pipe,
struct pipe_resource *resource,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box,
const void *data,
unsigned stride,
......@@ -79,7 +79,7 @@ unsigned u_default_is_resource_referenced( struct pipe_context *pipe,
struct pipe_transfer * u_default_get_transfer(struct pipe_context *context,
struct pipe_resource *resource,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box)
{
struct pipe_transfer *transfer = CALLOC_STRUCT(pipe_transfer);
......
......@@ -16,7 +16,7 @@ boolean u_default_resource_get_handle(struct pipe_screen *screen,
void u_default_transfer_inline_write( struct pipe_context *pipe,
struct pipe_resource *resource,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box,
const void *data,
unsigned stride,
......@@ -33,7 +33,7 @@ unsigned u_default_is_resource_referenced( struct pipe_context *pipe,
struct pipe_transfer * u_default_get_transfer(struct pipe_context *context,
struct pipe_resource *resource,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box);
void u_default_transfer_unmap( struct pipe_context *pipe,
......@@ -63,7 +63,7 @@ struct u_resource_vtbl {
struct pipe_transfer *(*get_transfer)(struct pipe_context *,
struct pipe_resource *resource,
struct pipe_subresource,
enum pipe_transfer_usage,
unsigned usage,
const struct pipe_box *);
void (*transfer_destroy)(struct pipe_context *,
......@@ -82,7 +82,7 @@ struct u_resource_vtbl {
void (*transfer_inline_write)( struct pipe_context *pipe,
struct pipe_resource *resource,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box,
const void *data,
unsigned stride,
......@@ -110,7 +110,7 @@ unsigned u_is_resource_referenced_vtbl( struct pipe_context *pipe,
struct pipe_transfer *u_get_transfer_vtbl(struct pipe_context *context,
struct pipe_resource *resource,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box);
void u_transfer_destroy_vtbl(struct pipe_context *pipe,
......@@ -129,7 +129,7 @@ void u_transfer_unmap_vtbl( struct pipe_context *rm_ctx,
void u_transfer_inline_write_vtbl( struct pipe_context *rm_ctx,
struct pipe_resource *resource,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box,
const void *data,
unsigned stride,
......
......@@ -360,7 +360,7 @@ static struct pipe_transfer *
cell_get_transfer(struct pipe_context *ctx,
struct pipe_resource *resource,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box)
{
struct cell_resource *ct = cell_resource(resource);
......
......@@ -75,7 +75,7 @@ static void
i915_buffer_transfer_inline_write( struct pipe_context *rm_ctx,
struct pipe_resource *resource,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box,
const void *data,
unsigned stride,
......
......@@ -738,7 +738,7 @@ static struct pipe_transfer *
identity_context_get_transfer(struct pipe_context *_context,
struct pipe_resource *_resource,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box)
{
struct identity_context *id_context = identity_context(_context);
......@@ -815,7 +815,7 @@ static void
identity_context_transfer_inline_write( struct pipe_context *_context,
struct pipe_resource *_resource,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box,
const void *data,
unsigned stride,
......
......@@ -364,7 +364,7 @@ static struct pipe_transfer *
llvmpipe_get_transfer(struct pipe_context *pipe,
struct pipe_resource *resource,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box)
{
struct llvmpipe_resource *lptex = llvmpipe_resource(resource);
......
......@@ -126,7 +126,7 @@ struct pipe_transfer *
nv50_miptree_transfer_new(struct pipe_context *pcontext,
struct pipe_resource *pt,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box)
{
struct pipe_screen *pscreen = pcontext->screen;
......
......@@ -9,7 +9,7 @@ struct pipe_transfer *
nv50_miptree_transfer_new(struct pipe_context *pcontext,
struct pipe_resource *pt,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box);
void
nv50_miptree_transfer_del(struct pipe_context *pcontext,
......
......@@ -38,7 +38,7 @@ struct pipe_transfer *
nvfx_miptree_transfer_new(struct pipe_context *pcontext,
struct pipe_resource *pt,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box)
{
struct pipe_screen *pscreen = pcontext->screen;
......
......@@ -10,7 +10,7 @@ struct pipe_transfer *
nvfx_miptree_transfer_new(struct pipe_context *pcontext,
struct pipe_resource *pt,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box);
void
nvfx_miptree_transfer_del(struct pipe_context *pcontext,
......
......@@ -310,7 +310,7 @@ static struct pipe_transfer *
softpipe_get_transfer(struct pipe_context *pipe,
struct pipe_resource *resource,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box)
{
struct softpipe_resource *sptex = softpipe_resource(resource);
......
......@@ -341,7 +341,7 @@ static struct pipe_transfer *
svga_texture_get_transfer(struct pipe_context *pipe,
struct pipe_resource *texture,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box)
{
struct svga_screen *ss = svga_screen(pipe->screen);
......
......@@ -1305,7 +1305,7 @@ static struct pipe_transfer *
trace_context_get_transfer(struct pipe_context *_context,
struct pipe_resource *_resource,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box)
{
struct trace_context *tr_context = trace_context(_context);
......@@ -1457,7 +1457,7 @@ static void
trace_context_transfer_inline_write(struct pipe_context *_context,
struct pipe_resource *_resource,
struct pipe_subresource sr,
enum pipe_transfer_usage usage,
unsigned usage,
const struct pipe_box *box,
const void *data,
unsigned stride,
......
......@@ -315,7 +315,7 @@ struct pipe_context {
struct pipe_transfer *(*get_transfer)(struct pipe_context *,
struct pipe_resource *resource,
struct pipe_subresource,
enum pipe_transfer_usage,
unsigned usage, /* a combination of PIPE_TRANSFER_x */
const struct pipe_box *);
void (*transfer_destroy)(struct pipe_context *,
......@@ -342,7 +342,7 @@ struct pipe_context {
void (*transfer_inline_write)( struct pipe_context *,
struct pipe_resource *,
struct pipe_subresource,
enum pipe_transfer_usage,
unsigned usage, /* a combination of PIPE_TRANSFER_x */
const struct pipe_box *,
const void *data,
unsigned stride,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment