瀏覽代碼

pan/midgard: Describe quirk MIDGARD_BROKEN_LOD

Corresponds to errata #10471, applies to T6xx and T720. Fixed in T760.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
master
Alyssa Rosenzweig 6 年之前
父節點
當前提交
68c2c7962a
共有 1 個檔案被更改,包括 13 行新增2 行删除
  1. 13
    2
      src/panfrost/midgard/midgard_quirks.h

+ 13
- 2
src/panfrost/midgard/midgard_quirks.h 查看文件



#define MIDGARD_OLD_BLEND (1 << 2) #define MIDGARD_OLD_BLEND (1 << 2)


/* Errata causing the LOD clamps and bias in the sampler descriptor to be
* ignored. This errata affects the command stream but uses a compiler
* workaround (applying the clamps/bias manually in the shader. Corresponds in
* BASE_HW_ISSUE_10471 in kbase, described as "TEXGRD doesn't honor Sampler
* Descriptor LOD clamps nor bias". (I'm assuming TEXGRD is what we call
* textureLod) */

#define MIDGARD_BROKEN_LOD (1 << 3)

static inline unsigned static inline unsigned
midgard_get_quirks(unsigned gpu_id) midgard_get_quirks(unsigned gpu_id)
{ {
switch (gpu_id) { switch (gpu_id) {
case 0x600: case 0x600:
case 0x620: case 0x620:
return MIDGARD_OLD_BLEND;
return MIDGARD_OLD_BLEND |
MIDGARD_BROKEN_LOD;


case 0x720: case 0x720:
return MIDGARD_INTERPIPE_REG_ALIASING | return MIDGARD_INTERPIPE_REG_ALIASING |
MIDGARD_OLD_BLEND;
MIDGARD_OLD_BLEND |
MIDGARD_BROKEN_LOD;


case 0x820: case 0x820:
case 0x830: case 0x830:

Loading…
取消
儲存