• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// DriConf options specific to virgl
2// To add a new tweak:
3//   1. Define the tweak in util/driconf.h and also add
4//      the tweak name as define to virgl_protocol.h
5//   2. Add the tweak here with the appropriated default value
6//   3. Add the code to query the tweak in virgl_create_screen
7//   4. Add the code to send the tweak to the host in virgl_send_tweaks
8//   5. Implement the tweak in virglrenderer
9DRI_CONF_SECTION_MISCELLANEOUS
10    DRI_CONF_FORMAT_L8_SRGB_ENABLE_READBACK(false)
11    DRI_CONF_GLES_EMULATE_BGRA(true)
12    DRI_CONF_GLES_APPLY_BGRA_DEST_SWIZZLE(true)
13    DRI_CONF_GLES_SAMPLES_PASSED_VALUE(1024, 1, 400000000)
14
15    /*
16     * Native-context drivers also (can) bind to the some virtio_gpu guest
17     * kernel device.  Because drm_helper ties the driconf config to the
18     * drm device name, we also need to include config options for any
19     * possible drm-native-context guest driver:
20     */
21    DRI_CONF_DISABLE_CONSERVATIVE_LRZ(false)
22
23    DRI_CONF_VIRGL_SHADER_SYNC(false)
24DRI_CONF_SECTION_END
25
26DRI_CONF_SECTION_DEBUG
27   /* Also needed for native-context drivers (freedreno) */
28   DRI_CONF_DISABLE_THROTTLING(false)
29DRI_CONF_SECTION_END
30