summaryrefslogtreecommitdiff
path: root/texturator.c
Commit message (Collapse)AuthorAgeFilesLines
* fix typosHarri Nieminen2023-03-281-1/+1
| | | | found by codespell
* texturator: Use correct GL extension headerDamian Hobson-Garcia2022-09-021-1/+1
| | | | | | | | gl2ext.h is the extenstion header for OpenGL ES 2.0 and all later versions according to the Khronos documentation [1]. gl3ext.h is either an empty stub, or may not even exist on some platforms. [1]: https://www.khronos.org/registry/OpenGL/index_es.php#headers
* surfaceless supportRob Clark2020-09-021-1/+1
|
* texturator: Fix float to bool conversion warningFabio Estevam2020-03-311-1/+1
| | | | | | | | | | | | The following build warning is seen: ../texturator.c:603:45: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] *complemented = (((float)rgba[2]) / 255.0) / 0.25; Fix it by using the != 0.0f construction to properly convert from float to bool. Signed-off-by: Fabio Estevam <festevam@gmail.com>
* texturator: Only define png variable when libpng is presentFabio Estevam2020-03-311-0/+2
| | | | | | | | | | | When libpng is not present the following build warning is seen: ../texturator.c:98:13: warning: 'png' defined but not used [-Wunused-variable] static bool png; Fix it by only defining the png variable when HAVE_LIBPNG is defined. Signed-off-by: Fabio Estevam <festevam@gmail.com>
* kmscube: add option to run for specified # of framesRob Clark2020-03-071-1/+1
|
* texturator: Fix skipping of tests when partially offscreen.Eric Anholt2020-02-271-1/+1
|
* kmscube: make fb/gl config format settable on cmdlineIlia Mirkin2019-08-301-1/+1
| | | | | | | | Instead of changing the code each time, allow the fourcc to be passed in as an argument. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Rob Clark <robdclark@gmail.com>
* texturator: add command-line selection of video modeAntonio Borneo2019-07-231-3/+23
| | | | | | | | Extend also to texturator the command line flag to select the video mode. Signed-off-by: Antonio Borneo <antonio.borneo@st.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* kmscube: add command-line selection of video modeAntonio Borneo2019-07-231-1/+1
| | | | | | | | | | | | | | The mode of type "DRM_MODE_TYPE_PREFERED" can be miss-configured, making kmscube not working. Plus, user could need to test the other available video modes at the connector. Add a command line flag to specify the video mode. If the mode is not present, print an informative message and fall-back to the default behaviour (preferred mode or highest resolution mode). Signed-off-by: Antonio Borneo <antonio.borneo@st.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* texturator: capture the screen to a png imageKhaled Emara2019-07-171-0/+62
| | | | | Signed-off-by: Khaled Emara <ekhaled1836@gmail.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch>
* texturator: add a linear pattern to texturesKhaled Emara2019-07-171-27/+53
|
* Add texturatorRob Clark2019-05-041-0/+867
A utility for testing layouts of various types of textures in various formats. Not really too much related to kms or kmscube, other than re-using kmscube's kms/gbm code and egl helper.