History

vulkan_ffv1: fix PCM + cached symbol reader

writeout_rgb requires that all subgroups are active.

Lynne committed 1 year ago

Commit a24ea371 parent f69db911 file · +5 −2Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/vulkan/ffv1_dec.comp+5−2
@@ -56,6 +56,11 @@ int get_isymbol(inout RangeCoder c, uint state_off) · 55 unmodified lines
56 56
57void decode_line_pcm(inout SliceContext sc, ivec2 sp, int w, int y, int p, int bits)57void decode_line_pcm(inout SliceContext sc, ivec2 sp, int w, int y, int p, int bits)
58{58{
59#ifdef CACHED_SYMBOL_READER
60 if (gl_LocalInvocationID.x > 0)
61 return;
62#endif
63
59#ifndef RGB64#ifndef RGB
60 if (p > 0 && p < 3) {65 if (p > 0 && p < 3) {
61 w >>= chroma_shift.x;66 w >>= chroma_shift.x;
@@ -235,8 +240,6 @@ void decode_slice(inout SliceContext sc, const uint slice_idx) · 173 unmodified lines
235 /* PCM coding */240 /* PCM coding */
236#ifndef GOLOMB241#ifndef GOLOMB
237 if (sc.slice_coding_mode == 1) {242 if (sc.slice_coding_mode == 1) {
238 if (gl_LocalInvocationID.x > 0)
239 return;
240#ifndef RGB243#ifndef RGB
241 for (int p = 0; p < planes; p++) {244 for (int p = 0; p < planes; p++) {
242 int h = sc.slice_dim.y;245 int h = sc.slice_dim.y;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t