st/mesa: add st_convert_image()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 31 Mar 2017 10:48:03 +0000 (12:48 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 3 Apr 2017 09:29:31 +0000 (11:29 +0200)
commit0c0b29591c264fa386b1354b6efb85375af3213a
treea96bc303e0faa30d98dd2f1c68a8cf7197ddd7fc
parent90534e9dba5895c74bcd328a3e5248d06503c8b3
st/mesa: add st_convert_image()

Should be used by the state tracker when glGetImageHandleARB()
is called in order to create a pipe_image_view template.

v3: - move the comment to *.c
v2: - make 'st' const
    - describe the function

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_atom_image.c
src/mesa/state_tracker/st_texture.h