st/mesa: prefer native texture formats when possible.
If possible, we want to match the hardware format to what the app uses. By doing so, we avoid the need for pixel conversions and therefore greatly speed up texture uploads.
Showing
- src/mesa/state_tracker/st_atom_pixeltransfer.c 1 addition, 1 deletionsrc/mesa/state_tracker/st_atom_pixeltransfer.c
- src/mesa/state_tracker/st_cb_drawpixels.c 6 additions, 4 deletionssrc/mesa/state_tracker/st_cb_drawpixels.c
- src/mesa/state_tracker/st_format.c 93 additions, 3 deletionssrc/mesa/state_tracker/st_format.c
- src/mesa/state_tracker/st_format.h 1 addition, 0 deletionssrc/mesa/state_tracker/st_format.h
Loading
Please register or sign in to comment