diff options
author | Nicolai Hähnle <[email protected]> | 2016-11-07 17:55:56 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-11-16 10:31:28 +0100 |
commit | 5e10a3d6e5c26ecfb536707165f4baf3b27a7623 (patch) | |
tree | c8384d07074ef7559f14552cc3a4a42c8db018cc /src/mesa/state_tracker/st_pbo.c | |
parent | 2fb4b5bdf6d10599d4b52bfca7095155a1437164 (diff) |
st/mesa: change st_pbo_create_upload_fs to st_pbo_get_upload_fs
For consistency with st_pbo_get_download_fs.
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_pbo.c')
-rw-r--r-- | src/mesa/state_tracker/st_pbo.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_pbo.c b/src/mesa/state_tracker/st_pbo.c index ca6bdea1b66..1e215542bfb 100644 --- a/src/mesa/state_tracker/st_pbo.c +++ b/src/mesa/state_tracker/st_pbo.c @@ -515,9 +515,12 @@ create_fs(struct st_context *st, bool download, enum pipe_texture_target target) } void * -st_pbo_create_upload_fs(struct st_context *st) +st_pbo_get_upload_fs(struct st_context *st) { - return create_fs(st, false, 0); + if (!st->pbo.upload_fs) + st->pbo.upload_fs = create_fs(st, false, 0); + + return st->pbo.upload_fs; } void * |