소스 검색

Cell: Remove erroneous ALIGN16_ATTRIB attributes

If a structure is marked as being aligned the SPE compiler performs
extra optimizations (sadly, only -O2 is used) when reading the
structure.  Since most of the structures sent in batch buffers are
only 8-byte aligned, this resulted in mysterous bugs with -O2.
tags/mesa_20090313
Ian Romanick 17 년 전
부모
커밋
de5c64e0af
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    3
      src/gallium/drivers/cell/common.h

+ 3
- 3
src/gallium/drivers/cell/common.h 파일 보기

@@ -137,7 +137,7 @@ struct cell_array_info
uint pitch; /**< Byte pitch from one entry to the next. */
uint size;
uint function_offset;
} ALIGN16_ATTRIB;
};


struct cell_attribute_fetch_code {
@@ -162,7 +162,7 @@ struct cell_shader_info
unsigned num_declarations;
unsigned num_instructions;
unsigned num_immediates;
} ALIGN16_ATTRIB;
};


#define SPU_VERTS_PER_BATCH 64
@@ -175,7 +175,7 @@ struct cell_command_vs
float plane[12][4];
unsigned nr_planes;
unsigned nr_attrs;
} ALIGN16_ATTRIB;
};


struct cell_command_render

Loading…
취소
저장