"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gallium/state_trackers/dri/dri2.c" between
mesa-20.0.0-rc2.tar.xz and mesa-20.0.0-rc3.tar.xz

About: Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics (main library code). Release candidate.

dri2.c  (mesa-20.0.0-rc2.tar.xz):dri2.c  (mesa-20.0.0-rc3.tar.xz)
skipping to change at line 1398 skipping to change at line 1398
if (!map) if (!map)
return false; return false;
format = map->pipe_format; format = map->pipe_format;
if (pscreen->query_dmabuf_modifiers != NULL && if (pscreen->query_dmabuf_modifiers != NULL &&
(pscreen->is_format_supported(pscreen, format, screen->target, 0, 0, (pscreen->is_format_supported(pscreen, format, screen->target, 0, 0,
PIPE_BIND_RENDER_TARGET) || PIPE_BIND_RENDER_TARGET) ||
pscreen->is_format_supported(pscreen, format, screen->target, 0, 0, pscreen->is_format_supported(pscreen, format, screen->target, 0, 0,
PIPE_BIND_SAMPLER_VIEW))) { PIPE_BIND_SAMPLER_VIEW) ||
dri2_yuv_dma_buf_supported(screen, map))) {
pscreen->query_dmabuf_modifiers(pscreen, format, max, modifiers, pscreen->query_dmabuf_modifiers(pscreen, format, max, modifiers,
external_only, count); external_only, count);
return true; return true;
} else if (dri2_yuv_dma_buf_supported(screen, map)) {
*count = 1;
if (modifiers)
modifiers[0] = DRM_FORMAT_MOD_NONE;
return true;
} }
return false; return false;
} }
static boolean static boolean
dri2_query_dma_buf_format_modifier_attribs(__DRIscreen *_screen, dri2_query_dma_buf_format_modifier_attribs(__DRIscreen *_screen,
uint32_t fourcc, uint64_t modifier, uint32_t fourcc, uint64_t modifier,
int attrib, uint64_t *value) int attrib, uint64_t *value)
{ {
switch (attrib) { switch (attrib) {
 End of changes. 2 change blocks. 
6 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)