- Added support for /dev/lpa# parallel ports under *BSD.
- Added META variables to the CGI header template to
prevent caching of the results.
+ - Fixed an unaligned memory buffer for the pstoraster
+ clist states; this caused bus errors for some
+ combinations of printers, drivers, and options.
CHANGES IN CUPS V1.1.6-3
GNU software to build or run it.
*/
-/*$Id: gdevprn.c,v 1.12 2001/03/16 20:42:06 mike Exp $ */
+/*$Id: gdevprn.c,v 1.13 2001/03/27 15:45:20 mike Exp $ */
/* Generic printer driver support */
#include "ctype_.h"
#include "gdevprn.h"
switch (sscanf(cache_env, "%d%254s", &cache_size, cache_units))
{
case 0 :
- cache_size = 32 * 1024 * 1024;
+ cache_size = 8 * 1024 * 1024;
break;
case 1 :
cache_size *= 4 * TILE_SIZE * TILE_SIZE;
}
}
else
- cache_size = 32 * 1024 * 1024;
+ cache_size = 8 * 1024 * 1024;
- space_params->MaxBitmap = cache_size;
+ space_params->MaxBitmap = cache_size;
+ space_params->BufferSpace = cache_size / 10;
}
/* Generic routine to send the page to the printer. */
GNU software to build or run it.
*/
-/*$Id: gxclist.c,v 1.6 2001/01/22 15:03:55 mike Exp $ */
+/*$Id: gxclist.c,v 1.7 2001/03/27 15:45:20 mike Exp $ */
/* Command list document- and page-level code. */
#include "memory_.h"
#include "string_.h"
&((gx_device_clist *)dev)->writer;
ulong state_size = cdev->nbands * (ulong) sizeof(gx_clist_state);
+ fprintf(stderr, "DEBUG: init_data = %p for cdev->states!\n", init_data);
+
/*
* The +100 in the next line is bogus, but we don't know what the
* real check should be. We're effectively assuring that at least 100
if (band_data_size >= band_space)
return_error(gs_error_rangecheck);
bits_size = min(band_space - band_data_size, data_size >> 1);
+ /**** MRS - make sure bits_size is 64-bit aligned for clist data!!! ****/
+ bits_size = (bits_size + 7) & ~7;
} else { /*
* Choose the largest band height that will fit in the
* rendering-time buffer.
*/
bits_size = clist_tile_cache_size(target, band_space);
bits_size = min(bits_size, data_size >> 1);
+ /**** MRS - make sure bits_size is 64-bit aligned for clist data!!! ****/
+ bits_size = (bits_size + 7) & ~7;
band_height = gdev_mem_max_height((gx_device_memory *) target,
band_width,
band_space - bits_size);