Commit 0eafc97b authored by sroland's avatar sroland
Browse files

fix GARTSize option

parent e262e2e4
...@@ -132,6 +132,7 @@ typedef enum { ...@@ -132,6 +132,7 @@ typedef enum {
OPTION_AGP_MODE, OPTION_AGP_MODE,
OPTION_AGP_FW, OPTION_AGP_FW,
OPTION_GART_SIZE, OPTION_GART_SIZE,
OPTION_GART_SIZE_OLD,
OPTION_RING_SIZE, OPTION_RING_SIZE,
OPTION_BUFFER_SIZE, OPTION_BUFFER_SIZE,
OPTION_DEPTH_MOVE, OPTION_DEPTH_MOVE,
...@@ -167,7 +168,7 @@ const OptionInfoRec RADEONOptions[] = { ...@@ -167,7 +168,7 @@ const OptionInfoRec RADEONOptions[] = {
{ OPTION_USEC_TIMEOUT, "CPusecTimeout", OPTV_INTEGER, {0}, FALSE }, { OPTION_USEC_TIMEOUT, "CPusecTimeout", OPTV_INTEGER, {0}, FALSE },
{ OPTION_AGP_MODE, "AGPMode", OPTV_INTEGER, {0}, FALSE }, { OPTION_AGP_MODE, "AGPMode", OPTV_INTEGER, {0}, FALSE },
{ OPTION_AGP_FW, "AGPFastWrite", OPTV_BOOLEAN, {0}, FALSE }, { OPTION_AGP_FW, "AGPFastWrite", OPTV_BOOLEAN, {0}, FALSE },
{ OPTION_GART_SIZE, "AGPSize", OPTV_INTEGER, {0}, FALSE }, { OPTION_GART_SIZE_OLD, "AGPSize", OPTV_INTEGER, {0}, FALSE },
{ OPTION_GART_SIZE, "GARTSize", OPTV_INTEGER, {0}, FALSE }, { OPTION_GART_SIZE, "GARTSize", OPTV_INTEGER, {0}, FALSE },
{ OPTION_RING_SIZE, "RingSize", OPTV_INTEGER, {0}, FALSE }, { OPTION_RING_SIZE, "RingSize", OPTV_INTEGER, {0}, FALSE },
{ OPTION_BUFFER_SIZE, "BufferSize", OPTV_INTEGER, {0}, FALSE }, { OPTION_BUFFER_SIZE, "BufferSize", OPTV_INTEGER, {0}, FALSE },
...@@ -3790,8 +3791,10 @@ static Bool RADEONPreInitDRI(ScrnInfoPtr pScrn) ...@@ -3790,8 +3791,10 @@ static Bool RADEONPreInitDRI(ScrnInfoPtr pScrn)
} }
} }
if (xf86GetOptValInteger(info->Options, if ((xf86GetOptValInteger(info->Options,
OPTION_GART_SIZE, (int *)&(info->gartSize))) { OPTION_GART_SIZE, (int *)&(info->gartSize))) ||
(xf86GetOptValInteger(info->Options,
OPTION_GART_SIZE_OLD, (int *)&(info->gartSize)))) {
switch (info->gartSize) { switch (info->gartSize) {
case 4: case 4:
case 8: case 8:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment