瀏覽代碼

nv50: switch nv50_surface.c to updated g80_texture.xml.h

Verified (binary diff) to produce identical code.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
tags/11.2-branchpoint
Ben Skeggs 9 年之前
父節點
當前提交
a15c08c95c
共有 1 個檔案被更改,包括 11 行新增7 行删除
  1. 11
    7
      src/gallium/drivers/nouveau/nv50/nv50_surface.c

+ 11
- 7
src/gallium/drivers/nouveau/nv50/nv50_surface.c 查看文件

@@ -38,7 +38,7 @@
#include "nv50/nv50_resource.h"

#include "nv50/g80_defs.xml.h"
#include "nv50/nv50_texture.xml.h"
#include "nv50/g80_texture.xml.h"

/* these are used in nv50_blit.h */
#define NV50_ENG2D_SUPPORTED_FORMATS 0xff0843e080608409ULL
@@ -997,12 +997,14 @@ nv50_blitter_make_sampler(struct nv50_blitter *blit)

blit->sampler[0].id = -1;

blit->sampler[0].tsc[0] = NV50_TSC_0_SRGB_CONVERSION_ALLOWED |
(NV50_TSC_WRAP_CLAMP_TO_EDGE << NV50_TSC_0_WRAPS__SHIFT) |
(NV50_TSC_WRAP_CLAMP_TO_EDGE << NV50_TSC_0_WRAPT__SHIFT) |
(NV50_TSC_WRAP_CLAMP_TO_EDGE << NV50_TSC_0_WRAPR__SHIFT);
blit->sampler[0].tsc[0] = G80_TSC_0_SRGB_CONVERSION |
(G80_TSC_WRAP_CLAMP_TO_EDGE << G80_TSC_0_ADDRESS_U__SHIFT) |
(G80_TSC_WRAP_CLAMP_TO_EDGE << G80_TSC_0_ADDRESS_V__SHIFT) |
(G80_TSC_WRAP_CLAMP_TO_EDGE << G80_TSC_0_ADDRESS_P__SHIFT);
blit->sampler[0].tsc[1] =
NV50_TSC_1_MAGF_NEAREST | NV50_TSC_1_MINF_NEAREST | NV50_TSC_1_MIPF_NONE;
G80_TSC_1_MAG_FILTER_NEAREST |
G80_TSC_1_MIN_FILTER_NEAREST |
G80_TSC_1_MIP_FILTER_NONE;

/* clamp to edge, min/max lod = 0, bilinear filtering */

@@ -1010,7 +1012,9 @@ nv50_blitter_make_sampler(struct nv50_blitter *blit)

blit->sampler[1].tsc[0] = blit->sampler[0].tsc[0];
blit->sampler[1].tsc[1] =
NV50_TSC_1_MAGF_LINEAR | NV50_TSC_1_MINF_LINEAR | NV50_TSC_1_MIPF_NONE;
G80_TSC_1_MAG_FILTER_LINEAR |
G80_TSC_1_MIN_FILTER_LINEAR |
G80_TSC_1_MIP_FILTER_NONE;
}

unsigned

Loading…
取消
儲存