Bug 1975837. r=aosmond a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D257122
This commit is contained in:
committed by
rvandermeulen@mozilla.com
parent
404892ce67
commit
a3995ac4f5
@@ -88,6 +88,12 @@ WINBASEAPI BOOL WINAPI QueryPerformanceFrequency(LARGE_INTEGER* lpFrequency);
|
||||
# define IMPLICIT
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# define ALIGNED_DECL(_align, _type) __declspec(align(_align)) _type
|
||||
#else
|
||||
# define ALIGNED_DECL(_align, _type) _type __attribute__((aligned(_align)))
|
||||
#endif
|
||||
|
||||
#include "gl_defs.h"
|
||||
#include "glsl.h"
|
||||
#include "program.h"
|
||||
|
||||
@@ -356,8 +356,9 @@ constexpr int MAX_TEXEL_OFFSET = 8;
|
||||
|
||||
// Fill texelFetchOffset outside the valid texture bounds with zeroes. The
|
||||
// stride will be set to 0 so that only one row of zeroes is needed.
|
||||
static const uint32_t
|
||||
zeroFetchBuf[MAX_TEXEL_OFFSET * sizeof(Float) / sizeof(uint32_t)] = {0};
|
||||
ALIGNED_DECL(
|
||||
16, static const uint32_t zeroFetchBuf[MAX_TEXEL_OFFSET * sizeof(Float) /
|
||||
sizeof(uint32_t)]) = {0};
|
||||
|
||||
struct FetchScalar {
|
||||
const uint32_t* buf;
|
||||
|
||||
Reference in New Issue
Block a user