projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62c8d19
)
d3d11colorconvert: Use shader resource and render target bind flags together
author
Seungha Yang
<seungha.yang@navercorp.com>
Thu, 19 Dec 2019 13:07:42 +0000
(22:07 +0900)
committer
Seungha Yang
<seungha.yang@navercorp.com>
Fri, 20 Dec 2019 10:21:02 +0000
(19:21 +0900)
The output of d3d11colorconvert would be used for rendering (i.e., shader resource)
sys/d3d11/gstd3d11colorconvert.c
patch
|
blob
|
history
diff --git
a/sys/d3d11/gstd3d11colorconvert.c
b/sys/d3d11/gstd3d11colorconvert.c
index
c753fe2
..
743d803
100644
(file)
--- a/
sys/d3d11/gstd3d11colorconvert.c
+++ b/
sys/d3d11/gstd3d11colorconvert.c
@@
-422,7
+422,7
@@
gst_d3d11_color_convert_decide_allocation (GstBaseTransform * trans,
if (!d3d11_params) {
d3d11_params = gst_d3d11_allocation_params_new (&info,
GST_D3D11_ALLOCATION_FLAG_USE_RESOURCE_FORMAT, D3D11_USAGE_DEFAULT,
- D3D11_BIND_RENDER_TARGET);
+ D3D11_BIND_
SHADER_RESOURCE | D3D11_BIND_
RENDER_TARGET);
} else {
/* Set bind flag */
for (i = 0; i < GST_VIDEO_INFO_N_PLANES (&info); i++) {