Displaying 8 results from an estimated 8 matches for "emitcachingmode".
2016 Mar 16
0
[PATCH mesa 3/6] nouveau: codegen: gk110: Make emitSTORE offset handling identical to emitLOAD
...nst Instruction *i)
break;
}
- if (i->src(0).getFile() != FILE_MEMORY_GLOBAL)
- offset &= 0xffffff;
-
if (code[0] & 0x2) {
+ offset &= 0xffffff;
emitLoadStoreType(i->dType, 0x33);
if (i->src(0).getFile() == FILE_MEMORY_LOCAL)
emitCachingMode(i->cache, 0x2f);
--
2.7.2
2016 Mar 16
13
[PATCH mesa 1/6] tgsi_build: Fix return of uninitialized memory in tgsi_*_instruction_memory
tgsi_default_instruction_memory / tgsi_build_instruction_memory were
returning uninitialized memory for tgsi_instruction_memory.Texture and
tgsi_instruction_memory.Format. Note 0 means not set, and thus is a
correct default initializer for these.
Fixes: 3243b6fc97 ("tgsi: add Texture and Format to tgsi_instruction_memory")
Cc: Nicolai Hähnle <nicolai.haehnle at amd.com>
2016 Mar 16
2
[PATCH mesa 5/6] nouveau: codegen: Add support for OpenCL global memory buffers
...itterNVC0::setAddressByFile(const ValueRef& src)
> {
> switch (src.getFile()) {
> case FILE_MEMORY_BUFFER:
> + case FILE_MEMORY_GLOBAL:
> srcAddr32(src, 26, 0);
> break;
> case FILE_MEMORY_LOCAL:
> @@ -1768,7 +1769,8 @@ CodeEmitterNVC0::emitCachingMode(CacheMode c)
> static inline bool
> uses64bitAddress(const Instruction *ldst)
> {
> - return ldst->src(0).getFile() == FILE_MEMORY_BUFFER &&
> + return (ldst->src(0).getFile() == FILE_MEMORY_BUFFER ||
> + ldst->src(0).getFile() == FILE_MEMORY_G...
2016 Mar 16
0
[PATCH mesa 5/6] nouveau: codegen: Add support for OpenCL global memory buffers
...50_ir_emit_nvc0.cpp
@@ -281,6 +281,7 @@ CodeEmitterNVC0::setAddressByFile(const ValueRef& src)
{
switch (src.getFile()) {
case FILE_MEMORY_BUFFER:
+ case FILE_MEMORY_GLOBAL:
srcAddr32(src, 26, 0);
break;
case FILE_MEMORY_LOCAL:
@@ -1768,7 +1769,8 @@ CodeEmitterNVC0::emitCachingMode(CacheMode c)
static inline bool
uses64bitAddress(const Instruction *ldst)
{
- return ldst->src(0).getFile() == FILE_MEMORY_BUFFER &&
+ return (ldst->src(0).getFile() == FILE_MEMORY_BUFFER ||
+ ldst->src(0).getFile() == FILE_MEMORY_GLOBAL) &&
ldst->...
2016 Mar 16
2
[PATCH mesa 4/6] nouveau: codegen: s/FILE_MEMORY_GLOBAL/FILE_MEMORY_BUFFER/
...CodeEmitterNVC0::setAddressByFile(const ValueRef& src)
> {
> switch (src.getFile()) {
> - case FILE_MEMORY_GLOBAL:
> + case FILE_MEMORY_BUFFER:
> srcAddr32(src, 26, 0);
> break;
> case FILE_MEMORY_LOCAL:
> @@ -1768,7 +1768,7 @@ CodeEmitterNVC0::emitCachingMode(CacheMode c)
> static inline bool
> uses64bitAddress(const Instruction *ldst)
> {
> - return ldst->src(0).getFile() == FILE_MEMORY_GLOBAL &&
> + return ldst->src(0).getFile() == FILE_MEMORY_BUFFER &&
> ldst->src(0).isIndirect(0) &&
&g...
2016 Mar 16
0
[PATCH mesa 5/6] nouveau: codegen: Add support for OpenCL global memory buffers
...t ValueRef& src)
>> {
>> switch (src.getFile()) {
>> case FILE_MEMORY_BUFFER:
>> + case FILE_MEMORY_GLOBAL:
>> srcAddr32(src, 26, 0);
>> break;
>> case FILE_MEMORY_LOCAL:
>> @@ -1768,7 +1769,8 @@ CodeEmitterNVC0::emitCachingMode(CacheMode c)
>> static inline bool
>> uses64bitAddress(const Instruction *ldst)
>> {
>> - return ldst->src(0).getFile() == FILE_MEMORY_BUFFER &&
>> + return (ldst->src(0).getFile() == FILE_MEMORY_BUFFER ||
>> + ldst->src(0).ge...
2016 Mar 16
0
[PATCH mesa 4/6] nouveau: codegen: s/FILE_MEMORY_GLOBAL/FILE_MEMORY_BUFFER/
...emit_nvc0.cpp
@@ -280,7 +280,7 @@ void
CodeEmitterNVC0::setAddressByFile(const ValueRef& src)
{
switch (src.getFile()) {
- case FILE_MEMORY_GLOBAL:
+ case FILE_MEMORY_BUFFER:
srcAddr32(src, 26, 0);
break;
case FILE_MEMORY_LOCAL:
@@ -1768,7 +1768,7 @@ CodeEmitterNVC0::emitCachingMode(CacheMode c)
static inline bool
uses64bitAddress(const Instruction *ldst)
{
- return ldst->src(0).getFile() == FILE_MEMORY_GLOBAL &&
+ return ldst->src(0).getFile() == FILE_MEMORY_BUFFER &&
ldst->src(0).isIndirect(0) &&
ldst->getIndirect(0, 0...
2016 Mar 16
0
[PATCH mesa 4/6] nouveau: codegen: s/FILE_MEMORY_GLOBAL/FILE_MEMORY_BUFFER/
...st ValueRef& src)
>> {
>> switch (src.getFile()) {
>> - case FILE_MEMORY_GLOBAL:
>> + case FILE_MEMORY_BUFFER:
>> srcAddr32(src, 26, 0);
>> break;
>> case FILE_MEMORY_LOCAL:
>> @@ -1768,7 +1768,7 @@ CodeEmitterNVC0::emitCachingMode(CacheMode c)
>> static inline bool
>> uses64bitAddress(const Instruction *ldst)
>> {
>> - return ldst->src(0).getFile() == FILE_MEMORY_GLOBAL &&
>> + return ldst->src(0).getFile() == FILE_MEMORY_BUFFER &&
>> ldst->src(0)...