mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-05 23:20:39 +02:00
gallium/util: added pipe_put_tile_rgba_format()
This commit is contained in:
parent
3ce1ec853b
commit
e75844b4e0
2 changed files with 18 additions and 1 deletions
|
|
@ -407,10 +407,20 @@ pipe_put_tile_rgba(struct pipe_context *pipe,
|
|||
struct pipe_transfer *pt,
|
||||
uint x, uint y, uint w, uint h,
|
||||
const float *p)
|
||||
{
|
||||
pipe_put_tile_rgba_format(pipe, pt, x, y, w, h, pt->resource->format, p);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
pipe_put_tile_rgba_format(struct pipe_context *pipe,
|
||||
struct pipe_transfer *pt,
|
||||
uint x, uint y, uint w, uint h,
|
||||
enum pipe_format format,
|
||||
const float *p)
|
||||
{
|
||||
unsigned src_stride = w * 4;
|
||||
void *packed;
|
||||
enum pipe_format format = pt->resource->format;
|
||||
|
||||
if (u_clip_tile(x, y, &w, &h, &pt->box))
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -92,6 +92,13 @@ pipe_put_tile_rgba(struct pipe_context *pipe,
|
|||
uint x, uint y, uint w, uint h,
|
||||
const float *p);
|
||||
|
||||
void
|
||||
pipe_put_tile_rgba_format(struct pipe_context *pipe,
|
||||
struct pipe_transfer *pt,
|
||||
uint x, uint y, uint w, uint h,
|
||||
enum pipe_format format,
|
||||
const float *p);
|
||||
|
||||
|
||||
void
|
||||
pipe_get_tile_z(struct pipe_context *pipe,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue