Compare commits
2 commits
main
...
virgl-pass
| Author | SHA1 | Date | |
|---|---|---|---|
| fed6ed3ab7 | |||
| fc5f045e1c |
4 changed files with 11 additions and 5 deletions
|
|
@ -1990,7 +1990,7 @@ endif
|
|||
|
||||
dep_clang = null_dep
|
||||
if with_clc
|
||||
llvm_libdir = dep_llvm.get_variable(cmake : 'LLVM_LIBRARY_DIR', configtool: 'libdir')
|
||||
llvm_libdir = get_option('clang-libdir')
|
||||
|
||||
dep_clang = cpp.find_library('clang-cpp', dirs : llvm_libdir, required : false)
|
||||
|
||||
|
|
|
|||
|
|
@ -879,3 +879,10 @@ option(
|
|||
value : false,
|
||||
description : 'use experimental virtio backend for intel driver',
|
||||
)
|
||||
|
||||
option(
|
||||
'clang-libdir',
|
||||
type : 'string',
|
||||
value : '',
|
||||
description : 'Locations to search for clang libraries.'
|
||||
)
|
||||
|
|
|
|||
|
|
@ -680,7 +680,7 @@ virgl_resource_async_query_gbm_layout(struct pipe_screen *screen,
|
|||
struct virgl_context *vctx;
|
||||
struct pipe_context *ctx;
|
||||
|
||||
if (!(bind & PIPE_BIND_SHARED))
|
||||
if (!(bind & (PIPE_BIND_SHARED | PIPE_BIND_SCANOUT | PIPE_BIND_RENDER_TARGET)))
|
||||
return;
|
||||
|
||||
if (!(vs->caps.caps.v2.capability_bits_v2 & VIRGL_CAP_V2_RESOURCE_LAYOUT))
|
||||
|
|
@ -807,8 +807,7 @@ virgl_resource_create_with_modifiers(struct pipe_screen *screen,
|
|||
int count)
|
||||
{
|
||||
if (!drm_find_modifier(DRM_FORMAT_MOD_LINEAR, modifiers, count)) {
|
||||
mesa_loge("unsupported modifier requested\n");
|
||||
return NULL;
|
||||
mesa_logd("non-linear modifiers requested; host will decide actual layout\n");
|
||||
}
|
||||
|
||||
return virgl_resource_create_front(screen, templ, NULL);
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ configure_file(
|
|||
configuration : _config,
|
||||
input : 'rusticl.icd.in',
|
||||
output : 'rusticl.icd',
|
||||
install : true,
|
||||
install : false,
|
||||
install_tag : 'runtime',
|
||||
install_dir : join_paths(get_option('sysconfdir'), 'OpenCL', 'vendors'),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue