aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_cb_drawpixels.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2014-08-02 21:00:41 +0200
committerMarek Olšák <[email protected]>2014-08-11 21:53:57 +0200
commit547e2880bc9ac88a5897306fb9eadee0c825d14c (patch)
treed7edbba7d4816452136b56ba2a7c0423a1619487 /src/mesa/state_tracker/st_cb_drawpixels.c
parent3d56732c1fa1e021341fff33404e1c6bc41ec991 (diff)
st/mesa: add st_context parameter to st_mesa_format_to_pipe_format
This will be used by the next commit. Reviewed-by: Glenn Kennard <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_cb_drawpixels.c')
-rw-r--r--src/mesa/state_tracker/st_cb_drawpixels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c
index d13a17f5002..5ae092b94fb 100644
--- a/src/mesa/state_tracker/st_cb_drawpixels.c
+++ b/src/mesa/state_tracker/st_cb_drawpixels.c
@@ -491,7 +491,7 @@ make_texture(struct st_context *st,
/* Choose a pixel format for the temp texture which will hold the
* image to draw.
*/
- pipeFormat = st_choose_matching_format(pipe->screen, PIPE_BIND_SAMPLER_VIEW,
+ pipeFormat = st_choose_matching_format(st, PIPE_BIND_SAMPLER_VIEW,
format, type, unpack->SwapBytes);
if (pipeFormat == PIPE_FORMAT_NONE) {